|
|
@@ -1242,7 +1242,7 @@ int Platform::enterMessagePump()
|
|
|
int vendorId;
|
|
|
char productString[64];
|
|
|
char vendorString[64];
|
|
|
- loadGamepad(device, &buttonCount, &joystickCount, &productId, &vendorId, productString, vendorString);
|
|
|
+ queryGamepad(device, &buttonCount, &joystickCount, &productId, &vendorId, productString, vendorString);
|
|
|
Platform::gamepadEventConnectedInternal(device, buttonCount, joystickCount, 0, vendorId, productId, vendorString, productString);
|
|
|
}
|
|
|
}
|
|
|
@@ -1520,7 +1520,7 @@ bool Platform::mouseEventInternal(Mouse::MouseEvent evt, int x, int y, int wheel
|
|
|
void Platform::gamepadEventConnectedInternal(GamepadHandle handle, unsigned int buttonCount, unsigned int joystickCount, unsigned int triggerCount,
|
|
|
unsigned int vendorId, unsigned int productId, const char* vendorString, const char* productString)
|
|
|
{
|
|
|
- Gamepad::add(GamepadHandle handle, buttonCount, joystickCount, triggerCount, vendorId, productId, vendorString, productString);
|
|
|
+ Gamepad::add(handle, buttonCount, joystickCount, triggerCount, vendorId, productId, vendorString, productString);
|
|
|
}
|
|
|
|
|
|
void Platform::gamepadEventDisconnectedInternal(GamepadHandle handle)
|