From 0f41e1fee10293165b4c18b54b664662d064405e Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Thu, 19 Jan 2012 00:00:40 +0000 Subject: [PATCH] * nifty - fix incorrect conditional in InputSystemJme.onMouseButtonEvent() git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9097 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java b/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java index 8a2d1c702..0b8013164 100644 --- a/engine/src/niftygui/com/jme3/niftygui/InputSystemJme.java +++ b/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); } }