From bdb41ee99560d8f76da1a839830802cfc95eacac Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 5 Feb 2021 10:36:20 +0000 Subject: [PATCH] DemoRunner: Enable all orientations and kiosk mode on mobile --- examples/DemoRunner/Source/Main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/DemoRunner/Source/Main.cpp b/examples/DemoRunner/Source/Main.cpp index b0fafe31ad..65b71c98dc 100644 --- a/examples/DemoRunner/Source/Main.cpp +++ b/examples/DemoRunner/Source/Main.cpp @@ -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()),