joystick: revert max axes value (#25483)

revert this to 255
old-commit-hash: 16fe10e128
taco
Shane Smiskol 3 years ago committed by GitHub
parent 50fb17775d
commit f49bbf60b6
  1. 2
      tools/joystick/joystickd.py

@ -41,7 +41,7 @@ class Joystick:
def __init__(self): def __init__(self):
# TODO: find a way to get this from API, perhaps "inputs" doesn't support it # TODO: find a way to get this from API, perhaps "inputs" doesn't support it
self.min_axis_value = {'ABS_Y': 0., 'ABS_RZ': 0.} self.min_axis_value = {'ABS_Y': 0., 'ABS_RZ': 0.}
self.max_axis_value = {'ABS_Y': 1023., 'ABS_RZ': 255.} self.max_axis_value = {'ABS_Y': 255., 'ABS_RZ': 255.}
self.cancel_button = 'BTN_TRIGGER' self.cancel_button = 'BTN_TRIGGER'
self.axes_values = {'ABS_Y': 0., 'ABS_RZ': 0.} # gb, steer self.axes_values = {'ABS_Y': 0., 'ABS_RZ': 0.} # gb, steer
self.axes_order = ['ABS_Y', 'ABS_RZ'] self.axes_order = ['ABS_Y', 'ABS_RZ']

Loading…
Cancel
Save