Browse Source

DemoRunner: Enable all orientations and kiosk mode on mobile

tags/2021-05-28
ed 5 years ago
parent
commit
bdb41ee995
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      examples/DemoRunner/Source/Main.cpp

+ 5
- 1
examples/DemoRunner/Source/Main.cpp View File

@@ -129,7 +129,11 @@ private:
#if JUCE_IOS || JUCE_ANDROID
setFullScreen (true);
Desktop::getInstance().setOrientationsEnabled (Desktop::rotatedClockwise | Desktop::rotatedAntiClockwise);
auto& desktop = Desktop::getInstance();
desktop.setOrientationsEnabled (Desktop::allOrientations);
desktop.setKioskModeComponent (this);
#else
setBounds ((int) (0.1f * (float) getParentWidth()),
(int) (0.1f * (float) getParentHeight()),


Loading…
Cancel
Save