]> git.armaanb.net Git - lightcards.git/commitdiff
Fix backwards arrow keys
authorArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 22:37:43 +0000 (17:37 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 22:37:43 +0000 (17:37 -0500)
No, the other left!

lightcards/display.py

index 5257c47f66237a8e334e5d06fb4a709a1ab1e5b9..45994917fd3d4d6e416647efcb556ab230e9a832 100755 (executable)
@@ -205,11 +205,11 @@ class Display():
             key = self.win.getkey()
             if key == "q":
                 sys.exit(0)
-            elif key in ["l", "KEY_LEFT"]:
+            elif key in ["l", "KEY_RIGHT"]:
                 self.obj.forward(self.stack)
                 self.obj.setSide(0)
                 self.disp_card()
-            elif key in ["h", "KEY_RIGHT"]:
+            elif key in ["h", "KEY_LEFT"]:
                 self.obj.back()
                 self.obj.setSide(0)
                 self.disp_card()