From 305f64ba2e5b9fc2a5d59a9d94581f9a684fae87 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 10 Nov 2013 17:44:51 +0100 Subject: [PATCH] Replaced search loop with indexOf() in Java file. --- android-project/src/org/libsdl/app/SDLActivity.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java index 61ed7ed3d..e55b87210 100755 --- a/android-project/src/org/libsdl/app/SDLActivity.java +++ b/android-project/src/org/libsdl/app/SDLActivity.java @@ -853,7 +853,6 @@ class SDLJoystickHandler_API12 extends SDLJoystickHandler { @Override public int getNumJoysticks() { createJoystickList(); - return mJoyIdList.size(); } @@ -871,17 +870,8 @@ class SDLJoystickHandler_API12 extends SDLJoystickHandler { @Override public int getJoyId(int devId) { - int i=0; - createJoystickList(); - - for(i=0; i