Skip to content

Commit

Permalink
Refactored to interface call
Browse files Browse the repository at this point in the history
  • Loading branch information
JoopAue committed Apr 3, 2016
1 parent d0f787e commit 0699d69
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jme3-core/src/main/java/com/jme3/input/InputManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,16 @@ public InputManager(List<Input> inputs) {

for (Input input : inputs) {
input.initialize();
input.setInputListener(this);
if(input instanceof MouseInput) {
mouse = (MouseInput) input;
mouse.setInputListener(this);
} else if (input instanceof KeyInput) {
keys = (KeyInput) input;
keys.setInputListener(this);
} else if (input instanceof JoyInput) {
joystick = (JoyInput) input;
joystick.setInputListener(this);
joysticks = joystick.loadJoysticks(this);
} else if (input instanceof TouchInput) {
touch = (TouchInput) input;
touch.setInputListener(this);
}
}

Expand Down

0 comments on commit 0699d69

Please sign in to comment.