* InputManager fix syntax error

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9119 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Sha..rd 2012-01-29 18:19:32 +00:00
parent 965974c18d
commit b1d4c36fd7

View File

@ -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;
}