diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /games-arcade/whichwayisup/files/whichwayisup-0.7.9-check_for_joystick_axes_not_null.patch | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'games-arcade/whichwayisup/files/whichwayisup-0.7.9-check_for_joystick_axes_not_null.patch')
-rw-r--r-- | games-arcade/whichwayisup/files/whichwayisup-0.7.9-check_for_joystick_axes_not_null.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games-arcade/whichwayisup/files/whichwayisup-0.7.9-check_for_joystick_axes_not_null.patch b/games-arcade/whichwayisup/files/whichwayisup-0.7.9-check_for_joystick_axes_not_null.patch new file mode 100644 index 000000000000..b97856a0d2b9 --- /dev/null +++ b/games-arcade/whichwayisup/files/whichwayisup-0.7.9-check_for_joystick_axes_not_null.patch @@ -0,0 +1,21 @@ +From: Markus Koschany <apo@debian.org> +Date: Tue, 28 May 2013 18:40:34 +0200 +Subject: check for joystick axes not null + +--- + lib/game.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/game.py b/lib/game.py +index f0afd84..30f86fd 100644 +--- a/lib/game.py ++++ b/lib/game.py +@@ -138,7 +138,7 @@ def parse_inputs(joystick = None): + if keys[K_F10]:
+ inputs["SPECIAL"] = True
+
+- if joystick != None: # Parse joystick input
++ if joystick != None and joystick.get_numaxes() != 0: # Parse joystick input
+
+ axis0 = joystick.get_axis(0)
+
|