Skip to content

Commit

Permalink
Replaced implicit boxing with explicit boxing in Java file.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Nov 10, 2013
1 parent 2d67178 commit bbf0f62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -845,7 +845,7 @@ private void createJoystickList() {
int[] deviceIds = InputDevice.getDeviceIds();
for(int i=0; i<deviceIds.length; i++) {
if( (InputDevice.getDevice(deviceIds[i]).getSources() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
mJoyIdList.add(deviceIds[i]);
mJoyIdList.add(Integer.valueOf(deviceIds[i]));
}
}
}
Expand All @@ -860,13 +860,13 @@ public int getNumJoysticks() {
@Override
public String getJoystickName(int joy) {
createJoystickList();
return InputDevice.getDevice(mJoyIdList.get(joy)).getName();
return InputDevice.getDevice(mJoyIdList.get(joy).intValue()).getName();
}

@Override
public int getJoystickAxes(int joy) {
createJoystickList();
return InputDevice.getDevice(mJoyIdList.get(joy)).getMotionRanges().size();
return InputDevice.getDevice(mJoyIdList.get(joy).intValue()).getMotionRanges().size();
}

@Override
Expand All @@ -876,7 +876,7 @@ public int getJoyId(int devId) {
createJoystickList();

for(i=0; i<mJoyIdList.size(); i++) {
if(mJoyIdList.get(i) == devId) {
if(mJoyIdList.get(i).intValue() == devId) {
return i;
}
}
Expand Down

0 comments on commit bbf0f62

Please sign in to comment.