mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(BlackBerry) Fix device ID check for gamepads.
This commit is contained in:
parent
21e45e3de6
commit
eb6429d6ca
@ -127,8 +127,12 @@ static void qnx_input_autodetect_gamepad(Gamepad_t* controller)
|
||||
{
|
||||
int device;
|
||||
|
||||
//The wiimote I have, not sure if generic.
|
||||
if (strcmp(controller->id, "0-057E-0306-58.22") == 0)
|
||||
//ID: A-BBBB-CCCC-D.D
|
||||
//A is the device's index in the array returned by screen_get_context_property_pv()
|
||||
//BBBB is the device's Vendor ID (in hexadecimal)
|
||||
//CCCC is the device's Product ID (also in hexadecimal)
|
||||
//D.D is the device's version number
|
||||
if (strstr(controller->id, "057E-0306"))
|
||||
{
|
||||
device = DEVICE_WIIMOTE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user