|
@@ -57,7 +57,7 @@ public class GodotInputHandler implements InputDeviceListener {
|
|
|
private final String tag = this.getClass().getSimpleName();
|
|
|
|
|
|
private final SparseIntArray mJoystickIds = new SparseIntArray(4);
|
|
|
- private final SparseArray<Joystick> mJoysticksDevices = new SparseArray<Joystick>(4);
|
|
|
+ private final SparseArray<Joystick> mJoysticksDevices = new SparseArray<>(4);
|
|
|
|
|
|
private final GodotView godotView;
|
|
|
private final InputManagerCompat inputManager;
|
|
@@ -328,7 +328,7 @@ public class GodotInputHandler implements InputDeviceListener {
|
|
|
//Helps with creating new joypad mappings.
|
|
|
Log.i(tag, "=== New Input Device: " + joystick.name);
|
|
|
|
|
|
- Set<Integer> already = new HashSet<Integer>();
|
|
|
+ Set<Integer> already = new HashSet<>();
|
|
|
for (InputDevice.MotionRange range : device.getMotionRanges()) {
|
|
|
boolean isJoystick = range.isFromSource(InputDevice.SOURCE_JOYSTICK);
|
|
|
boolean isGamepad = range.isFromSource(InputDevice.SOURCE_GAMEPAD);
|