Skip to content

Commit 8119547

Browse files
committed
device: add hacky detection of Trust GXT 24 as gamepad for now
1 parent 0cfd86d commit 8119547

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

panda/src/device/evdevInputDevice.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ static const struct DeviceMapping {
7373
{0x045e, 0x0719, InputDevice::DeviceClass::gamepad, QB_connect_if_nonzero},
7474
// Jess Tech Colour Rumble Pad
7575
{0x0f30, 0x0111, InputDevice::DeviceClass::gamepad, 0},
76+
// Trust GXT 24
77+
{0x0079, 0x0006, InputDevice::DeviceClass::gamepad, 0},
7678
// 3Dconnexion Space Traveller 3D Mouse
7779
{0x046d, 0xc623, InputDevice::DeviceClass::spatial_mouse, 0},
7880
// 3Dconnexion Space Pilot 3D Mouse

panda/src/device/winRawInputDevice.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ on_arrival(HANDLE handle, const RID_DEVICE_INFO &info, std::string name) {
273273
// Well, it claims to be a gamepad...
274274
_device_class = DeviceClass::gamepad;
275275
}
276+
//TODO: better solution for this
277+
if (_vendor_id == 0x0079 && _product_id == 0x0006) {
278+
// Trust GXT 24
279+
_device_class = DeviceClass::gamepad;
280+
}
276281

277282
// Mice
278283
} else if (info.hid.usUsagePage == HID_USAGE_PAGE_GENERIC &&

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy