* nifty - fix incorrect conditional in InputSystemJme.onMouseButtonEvent()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9097 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 13 years ago
parent 697d23ddc0
commit 0f41e1fee1
  1. 2
      engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java

@ -191,7 +191,7 @@ public class InputSystemJme implements InputSystem, RawInputListener {
}
public void onMouseButtonEvent(MouseButtonEvent evt) {
if (inputManager.isCursorVisible() && evt.getButtonIndex() >= 0 || evt.getButtonIndex() <= 2){
if (inputManager.isCursorVisible() && evt.getButtonIndex() >= 0 && evt.getButtonIndex() <= 2){
inputQueue.add(evt);
}
}

Loading…
Cancel
Save