From 482d94d925820969f3e9c673ff64badce9da60c4 Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 20 Feb 2023 22:48:06 -0500 Subject: [PATCH] suppress mod keys, pass rotate state to game --- Playzing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Playzing.py b/Playzing.py index 169ecb1..8237e89 100755 --- a/Playzing.py +++ b/Playzing.py @@ -73,6 +73,9 @@ class Playzing(pgfw.Game): self.register(self.reveal_text, interval=40) self.play(self.animate_logo, play_once=True) + # Don't let modifier keys trigger an any key event + self.input.suppress_any_key_on_mods() + def initialize_gpio(self): """ Set pin numbering mode to GPIO, initialize all buttons to input pullup. @@ -181,7 +184,7 @@ class Playzing(pgfw.Game): if self.delegate.compare(event, "any"): os.chdir(pathlib.Path("games/ibitfit")) print(f"current working dir is {os.getcwd()}") - ibitfit = ElectricSieve(suppress_gpio_init=True) + ibitfit = ElectricSieve(suppress_gpio_init=True, rotate=self.rotated) ibitfit.display.set_screen(dimensions=ibitfit.configuration.get("display", "dimensions")) ibitfit.run() os.chdir(pathlib.Path("../.."))