device: Add Windows gamepad mapping with VID:PID 2563:0523

From https://discourse.panda3d.org/t/gamepad-emulator-and-panda/27336
This commit is contained in:
rdb 2021-03-04 20:45:53 +01:00
parent 9be2f307c5
commit 2e3ce27865

View File

@ -81,6 +81,10 @@ static const struct DeviceMapping {
{0x054c, 0x0ba0, InputDevice::DeviceClass::gamepad, QB_rstick_from_z, {0x054c, 0x0ba0, InputDevice::DeviceClass::gamepad, QB_rstick_from_z,
{"face_x", "face_a", "face_b", "face_y", "lshoulder", "rshoulder", 0, 0, "back", "start", "lstick", "rstick", "guide", 0} {"face_x", "face_a", "face_b", "face_y", "lshoulder", "rshoulder", 0, 0, "back", "start", "lstick", "rstick", "guide", 0}
}, },
// PS2 controller connected through a USB adapter
{0x2563, 0x0523, InputDevice::DeviceClass::gamepad, QB_rstick_from_z | QB_no_analog_triggers,
{"face_y", "face_b", "face_a", "face_x", "lshoulder", "rshoulder", "ltrigger", "rtrigger", "back", "start", "lstick", "rstick"}
},
{0}, {0},
}; };