mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-22 16:17:22 +00:00
Support analog d-pad out of the box
This commit is contained in:
1 parent
cecc72dbf0
commit
94a8fed2f1
3 files changed
+7
-5
No files matched your search
@@ -148,6 +148,9 @@ public class EvdevConstants {
|
||||
public static final short ABS_RX = 0x03;
|
||||
public static final short ABS_RY = 0x04;
|
||||
|
||||
public static final short ABS_HAT0X = 0x10;
|
||||
public static final short ABS_HAT0Y = 0x11;
|
||||
|
||||
public static final short ABS_THROTTLE = 0x06;
|
||||
public static final short ABS_RUDDER = 0x07;
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ public class GamepadMapping {
|
||||
|
||||
public short abs_deadzone = 0;
|
||||
|
||||
public short abs_dpad_y = -1;
|
||||
public short abs_dpad_x = -1;
|
||||
public short abs_dpad_y = EvdevConstants.ABS_HAT0X;
|
||||
public short abs_dpad_x = EvdevConstants.ABS_HAT0Y;
|
||||
|
||||
public short abs_throttle = EvdevConstants.ABS_THROTTLE;
|
||||
public short abs_rudder = EvdevConstants.ABS_RUDDER;
|
||||
|
||||
Reference in new issue
Block a user