From d10379e07bc815253e8d7d08ca4e530f891dd936 Mon Sep 17 00:00:00 2001 From: "Lasse F. Sortland" Date: Fri, 3 Sep 2021 11:47:36 +0100 Subject: [PATCH] Fixed an error relating to rumbe states Fixed an being raied when rumble state changed by external library stopping the inputs library from being able to read the state of the controller. If this is not changed, the library instead throws an error when reading the controller state using get_gamepad() after the rumble state has been changed. --- inputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputs.py b/inputs.py index b1f8fb1..70a8dae 100644 --- a/inputs.py +++ b/inputs.py @@ -1285,7 +1285,7 @@ def convert_timeval(seconds_since_epoch): # We have yet to support force feedback but probably should # eventually: -FORCE_FEEDBACK = () # Motor in gamepad +FORCE_FEEDBACK = (((i, hex(i)) for i in range(0, 65536))) # Motor in gamepad FORCE_FEEDBACK_STATUS = () # Status of motor POWER = () # Power switch