mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 21:25:37 +00:00
Fixed implicit boxing and unboxing of Java Objects warning.
This commit is contained in:
parent
8d11db2f93
commit
1f111f3ddc
|
@ -1018,12 +1018,12 @@ class SDLJoystickHandler_API12 extends SDLJoystickHandler {
|
||||||
if (device_id == deviceIds[j]) break;
|
if (device_id == deviceIds[j]) break;
|
||||||
}
|
}
|
||||||
if (j == deviceIds.length) {
|
if (j == deviceIds.length) {
|
||||||
removedDevices.add(device_id);
|
removedDevices.add(Integer.valueOf(device_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i=0; i < removedDevices.size(); i++) {
|
for(int i=0; i < removedDevices.size(); i++) {
|
||||||
int device_id = removedDevices.get(i);
|
int device_id = removedDevices.get(i).intValue();
|
||||||
SDLActivity.nativeRemoveJoystick(device_id);
|
SDLActivity.nativeRemoveJoystick(device_id);
|
||||||
for (int j=0; j < mJoysticks.size(); j++) {
|
for (int j=0; j < mJoysticks.size(); j++) {
|
||||||
if (mJoysticks.get(j).device_id == device_id) {
|
if (mJoysticks.get(j).device_id == device_id) {
|
||||||
|
|
Loading…
Reference in a new issue