aboutsummaryrefslogtreecommitdiff
path: root/src/splitscreen_duo/__init__.py
diff options
context:
space:
mode:
authorZoltan Szabatin <[email protected]>2025-05-14 21:36:56 -0700
committerZoltan Szabatin <[email protected]>2025-05-14 21:36:56 -0700
commit70a4c41a75275be6050683191e05ec1cb693ffce (patch)
treeffa5257b21e227e17ab65d0ead0dd2851f22c97e /src/splitscreen_duo/__init__.py
parentswitched from usb hid to cdc (diff)
downloadsplitscreen-duo-main.tar.xz
splitscreen-duo-main.zip
feat: Split updates screen sizeHEADmain
Diffstat (limited to 'src/splitscreen_duo/__init__.py')
-rw-r--r--src/splitscreen_duo/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/splitscreen_duo/__init__.py b/src/splitscreen_duo/__init__.py
index defba37..3df7290 100644
--- a/src/splitscreen_duo/__init__.py
+++ b/src/splitscreen_duo/__init__.py
@@ -28,6 +28,7 @@ def main() -> int:
print("The Dual Screen Console")
logger.info(f"running as {os.getenv('INSTANCE', 'unknown')}")
menu.init_display()
+ menu.set_screen_orientation(is_joint_mode[0])
font = pygame.font.Font(None, 36)
BLACK = (0, 0, 0)
@@ -92,10 +93,12 @@ def main() -> int:
if command == Command.ENTER_JOINT_MODE.value:
is_joint_mode[0] = True
+ menu.set_screen_orientation(is_joint_mode[0])
logger.info("secondary entering joint mode")
elif command == Command.EXIT_JOINT_MODE.value:
is_joint_mode[0] = False
+ menu.set_screen_orientation(is_joint_mode[0])
logger.info("secondary exiting joint mode")
elif command == Command.QUIT.value:
pygame.quit()
@@ -167,8 +170,6 @@ def main() -> int:
if result == 0:
return 0
- menu.draw_menu()
-
pygame.quit()
return 0