diff options
Diffstat (limited to 'scripts/joystick.lua')
-rw-r--r-- | scripts/joystick.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/joystick.lua b/scripts/joystick.lua new file mode 100644 index 0000000..6c492f5 --- /dev/null +++ b/scripts/joystick.lua @@ -0,0 +1,13 @@ +function JoyThresholdUp() + settings.joy_threshold = settings.joy_threshold + 0.05 + if settings.joy_threshold > 0.95 then + settings.joy_threshold = 0.95 + end +end + +function JoyThresholdDown() + settings.joy_threshold = settings.joy_threshold - 0.05 + if settings.joy_threshold < 0.0 then + settings.joy_threshold = 0.0 + end +end |