]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Fix backwards arrow keys
[lightcards.git] / 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()