Browse Source

* InputManager fix syntax error

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9119 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Sha..rd 13 years ago
parent
commit
b1d4c36fd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/src/core/com/jme3/input/InputManager.java

+ 2 - 2
engine/src/core/com/jme3/input/InputManager.java

@@ -651,8 +651,8 @@ public class InputManager implements RawInputListener {
      * @return an array of all joysticks installed on the system.
      */
     public Joystick[] getJoysticks() {
-	   if (joyInput == null){
-            throw new InvalidStateException("Joystick Input is disabled");
+	   if (joystick == null){
+            throw new IllegalStateException("Joystick Input is disabled");
         }
         return joysticks;
     }