|
@@ -651,8 +651,8 @@ public class InputManager implements RawInputListener {
|
|
* @return an array of all joysticks installed on the system.
|
|
* @return an array of all joysticks installed on the system.
|
|
*/
|
|
*/
|
|
public Joystick[] getJoysticks() {
|
|
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;
|
|
return joysticks;
|
|
}
|
|
}
|