mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-12-23 04:08:48 -05:00
Also set limits for second joystick.
This commit is contained in:
parent
b4ddd24f5f
commit
7d83ea86db
@ -41,7 +41,12 @@ JOYSTICK_ADD_KEY(BTN_2, UI_SET_KEYBIT, 0)
|
||||
JOYSTICK_ADD_KEY(BTN_3, UI_SET_KEYBIT, 0)
|
||||
|
||||
JOYSTICK_ADD_KEY(ABS_HAT0X, UI_SET_ABSBIT, 1)
|
||||
JOYSTICK_SET_LIM(absmax, 1, ABS_HAT0X)
|
||||
JOYSTICK_SET_LIM(absmin, -1, ABS_HAT0X)
|
||||
|
||||
JOYSTICK_ADD_KEY(ABS_HAT0Y, UI_SET_ABSBIT, 1)
|
||||
JOYSTICK_SET_LIM(absmax, 1, ABS_HAT0X)
|
||||
JOYSTICK_SET_LIM(absmin, -1, ABS_HAT0X)
|
||||
|
||||
JOYSTICK_ADD_KEY(BTN_JOYSTICK, UI_SET_KEYBIT, 1)
|
||||
JOYSTICK_ADD_KEY(BTN_0, UI_SET_KEYBIT, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user