* InputManager fix syntax error

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9119 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent 965974c18d
commit b1d4c36fd7
  1. 4
      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;
}

Loading…
Cancel
Save