device: add hacky detection of Trust GXT 24 as gamepad for now

This commit is contained in:
rdb 2018-12-31 13:12:40 +01:00
parent 0cfd86d0f4
commit 8119547e90
2 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,8 @@ static const struct DeviceMapping {
{0x045e, 0x0719, InputDevice::DeviceClass::gamepad, QB_connect_if_nonzero},
// Jess Tech Colour Rumble Pad
{0x0f30, 0x0111, InputDevice::DeviceClass::gamepad, 0},
// Trust GXT 24
{0x0079, 0x0006, InputDevice::DeviceClass::gamepad, 0},
// 3Dconnexion Space Traveller 3D Mouse
{0x046d, 0xc623, InputDevice::DeviceClass::spatial_mouse, 0},
// 3Dconnexion Space Pilot 3D Mouse

View File

@ -273,6 +273,11 @@ on_arrival(HANDLE handle, const RID_DEVICE_INFO &info, std::string name) {
// Well, it claims to be a gamepad...
_device_class = DeviceClass::gamepad;
}
//TODO: better solution for this
if (_vendor_id == 0x0079 && _product_id == 0x0006) {
// Trust GXT 24
_device_class = DeviceClass::gamepad;
}
// Mice
} else if (info.hid.usUsagePage == HID_USAGE_PAGE_GENERIC &&