diff options
| author | Zoltan Szabatin <[email protected]> | 2025-05-14 21:36:56 -0700 |
|---|---|---|
| committer | Zoltan Szabatin <[email protected]> | 2025-05-14 21:36:56 -0700 |
| commit | 70a4c41a75275be6050683191e05ec1cb693ffce (patch) | |
| tree | ffa5257b21e227e17ab65d0ead0dd2851f22c97e /src/splitscreen_duo/__init__.py | |
| parent | switched from usb hid to cdc (diff) | |
| download | splitscreen-duo-main.tar.xz splitscreen-duo-main.zip | |
Diffstat (limited to 'src/splitscreen_duo/__init__.py')
| -rw-r--r-- | src/splitscreen_duo/__init__.py | 5 |
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 |