|
@@ -99,8 +99,8 @@ public class SDLControllerManager
|
|
|
|
|
|
/* This is called for every button press, so let's not spam the logs */
|
|
|
/**
|
|
|
- if ((sources & InputDevice.SOURCE_CLASS_JOYSTICK) == InputDevice.SOURCE_CLASS_JOYSTICK) {
|
|
|
- Log.v(TAG, "Input device " + device.getName() + " is a joystick.");
|
|
|
+ if ((sources & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
|
|
|
+ Log.v(TAG, "Input device " + device.getName() + " has class joystick.");
|
|
|
}
|
|
|
if ((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD) {
|
|
|
Log.v(TAG, "Input device " + device.getName() + " is a dpad.");
|
|
@@ -110,7 +110,7 @@ public class SDLControllerManager
|
|
|
}
|
|
|
**/
|
|
|
|
|
|
- return (((sources & InputDevice.SOURCE_CLASS_JOYSTICK) == InputDevice.SOURCE_CLASS_JOYSTICK) ||
|
|
|
+ return ((sources & InputDevice.SOURCE_CLASS_JOYSTICK) != 0 ||
|
|
|
((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD) ||
|
|
|
((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD)
|
|
|
);
|