From b1d4c36fd71a98c7cae9212d32c368d1e7ea3c94 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Sun, 29 Jan 2012 18:19:32 +0000 Subject: [PATCH] * InputManager fix syntax error git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9119 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/input/InputManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/input/InputManager.java b/engine/src/core/com/jme3/input/InputManager.java index 55f21c9a2..08fd776b5 100644 --- a/engine/src/core/com/jme3/input/InputManager.java +++ b/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; }