Skip to content

Commit 5b05595

Browse files
committed
doc: add sensor option for orientation.
1 parent 9eddd5e commit 5b05595

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/source/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Available options to `build.py`::
8282
The name of the project's launcher icon.
8383
--orientation ORIENTATION
8484
The orientation that the game will display in. Usually
85-
one of "landscape" or "portrait".
85+
one of "landscape", "portrait" or "sensor".
8686
--permission PERMISSIONS
8787
The permissions to give this app.
8888
--ignore-path IGNORE_PATH

src/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def make_package(args):
322322
ap.add_argument('--launcher', dest='launcher', action='store_true',
323323
help='Provide this argument to build a multi-app launcher, rather than a single app.')
324324
ap.add_argument('--icon-name', dest='icon_name', help='The name of the project\'s launcher icon.')
325-
ap.add_argument('--orientation', dest='orientation', default='landscape', help='The orientation that the game will display in. Usually one of "landscape" or "portrait".')
325+
ap.add_argument('--orientation', dest='orientation', default='landscape',
326+
help='The orientation that the game will display in. Usually one of "landscape", "portrait" or "sensor"')
326327
ap.add_argument('--permission', dest='permissions', action='append', help='The permissions to give this app.')
327328
ap.add_argument('--ignore-path', dest='ignore_path', action='append', help='Ignore path when building the app')
328329
ap.add_argument('--icon', dest='icon', help='A png file to use as the icon for the application.')

0 commit comments

Comments
 (0)