Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
4 additions
and
0 deletions.
-
+4
−0
android-project/src/org/libsdl/app/SDLActivity.java
|
@@ -853,22 +853,26 @@ private void createJoystickList() { |
|
|
} |
|
|
} |
|
|
|
|
|
@Override |
|
|
public int getNumJoysticks() { |
|
|
createJoystickList(); |
|
|
|
|
|
return mJoyIdList.size(); |
|
|
} |
|
|
|
|
|
@Override |
|
|
public String getJoystickName(int joy) { |
|
|
createJoystickList(); |
|
|
return InputDevice.getDevice(mJoyIdList.get(joy)).getName(); |
|
|
} |
|
|
|
|
|
@Override |
|
|
public int getJoystickAxes(int joy) { |
|
|
createJoystickList(); |
|
|
return InputDevice.getDevice(mJoyIdList.get(joy)).getMotionRanges().size(); |
|
|
} |
|
|
|
|
|
@Override |
|
|
public int getJoyId(int devId) { |
|
|
int i=0; |
|
|
|
|
|