From 2e3ce27865b3221d00352ddc6de4855cf6a7a8a8 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 4 Mar 2021 20:45:53 +0100 Subject: [PATCH] device: Add Windows gamepad mapping with VID:PID 2563:0523 From https://discourse.panda3d.org/t/gamepad-emulator-and-panda/27336 --- panda/src/device/winRawInputDevice.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/device/winRawInputDevice.cxx b/panda/src/device/winRawInputDevice.cxx index 010766edf0..96c9b1adbe 100644 --- a/panda/src/device/winRawInputDevice.cxx +++ b/panda/src/device/winRawInputDevice.cxx @@ -81,6 +81,10 @@ static const struct DeviceMapping { {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} }, + // 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}, };