mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
device: D-Pad mappings for DualShock 3 driver on Linux
This commit is contained in:
parent
ff66728212
commit
664d628cbc
@ -971,15 +971,19 @@ map_button(int code, DeviceClass device_class) {
|
||||
case BTN_THUMBR:
|
||||
return GamepadButton::rstick();
|
||||
|
||||
case BTN_DPAD_LEFT:
|
||||
case BTN_TRIGGER_HAPPY1:
|
||||
return GamepadButton::dpad_left();
|
||||
|
||||
case BTN_DPAD_RIGHT:
|
||||
case BTN_TRIGGER_HAPPY2:
|
||||
return GamepadButton::dpad_right();
|
||||
|
||||
case BTN_DPAD_UP:
|
||||
case BTN_TRIGGER_HAPPY3:
|
||||
return GamepadButton::dpad_up();
|
||||
|
||||
case BTN_DPAD_DOWN:
|
||||
case BTN_TRIGGER_HAPPY4:
|
||||
return GamepadButton::dpad_down();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user