|
|
@@ -1524,12 +1524,8 @@ class SDLJoystickHandler_API12 extends SDLJoystickHandler {
|
|
|
joystick = new SDLJoystick();
|
|
|
InputDevice joystickDevice = InputDevice.getDevice(deviceIds[i]);
|
|
|
|
|
|
- if (
|
|
|
- (joystickDevice.getSources() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0
|
|
|
- ||
|
|
|
- (joystickDevice.getSources() & InputDevice.SOURCE_CLASS_BUTTON) != 0
|
|
|
- )
|
|
|
- {
|
|
|
+ // Urho3D - revert back commit 34a0b0478654e8dfaf111aecc0e4535875c4ec87 as it does more harm than good
|
|
|
+ if( (joystickDevice.getSources() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
|
|
|
joystick.device_id = deviceIds[i];
|
|
|
joystick.name = joystickDevice.getName();
|
|
|
joystick.axes = new ArrayList<InputDevice.MotionRange>();
|