Forráskód Böngészése

Fixed a bug in how POV.DOWN_RIGHT was reported...
it was actually sending events as if it was UP_LEFT.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 13 éve
szülő
commit
c3549f42f6

+ 1 - 1
engine/src/lwjgl/com/jme3/input/lwjgl/JInputJoyInput.java

@@ -118,7 +118,7 @@ public class JInputJoyInput implements JoyInput {
                     }else if (v == POV.DOWN_LEFT){
                         x = -1f; y = -1f;
                     }else if (v == POV.DOWN_RIGHT){
-                        x = -1f; y = 1f;
+                        x = 1f; y = -1f;
                     }else if (v == POV.LEFT){
                         x = -1f; y = 0;
                     }else if (v == POV.RIGHT){