on bionic help sign in
unity8/doc/devices.conf
45 lines 1.8 kB history raw
1# This file can hold multiple device configs. Devices are separated by sections.
2#
3# SupportedOrientations holds a list of all enabled orientations. A standard
4# phone will usually have Portrait,Landcape,InvertedLandscape in order to
5# disable upside down usage.
6#
7# PrimaryOrientation gives the orientation the device will start up with
8# when there is no orientations sensor input available (yet) or lock to
9# when an application specifies to be locked to PrimaryOrientation.
11# The other Orientation settings can be used to re-map the orientations.
12# A device might be used with different orientations than how the screen
13# is physically mounted on the hardware.
15# Category can be phone, tablet, or desktop. This option determines
16# whether the side stage is shown (tablet) or not (phone). Using
17# desktop will load the shell in windowed mode. Note that the user
18# can override/change this by connecting input hardware or change
19# user settings.
21# Any options not listed will default to the values of the example below.
23[devicename]
24SupportedOrientations=Portrait,InvertedPortrait,Landscape,InvertedLandscape
25PrimaryOrientation=PrimaryOrienation
26PortraitOrientation=Portrait
27InvertedPortraitOrientation=InvertedPortrait
28LandscapeOrientation=Landscape
29InvertedLandscapeOrientation=InvertedLandscape
30Category=phone
32# Example for the Nexus 7
33# This device has the screen mounted in portrait, but we run it as a landscape
34# device and we want the side stage on it.
35[flo]
36PrimaryOrientation=LandscapeOrienation
37Category=tablet
39# Example for the Nexus 4
40# The screen is already mounted the way we want it, so no special config
41# required. However, we don't want the phone to rotate upside down, so lets
42# restrict that.
43[mako]
44SupportedOrientations=Portrait,Landscape,InvertedLandscape
45Category=phone