Added a dump of the buttons.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9773 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 13 years ago
parent c4574bff13
commit 67750ff7a5
  1. 4
      engine/src/test/jme3test/input/TestJoystick.java

@ -77,7 +77,11 @@ public class TestJoystick extends SimpleApplication {
for( Joystick j : joysticks ) {
out.println( "Joystick[" + j.getJoyId() + "]:" + j.getName() );
out.println( " buttons:" + j.getButtonCount() );
for( JoystickButton b : j.getButtons() ) {
out.println( " " + b );
}
out.println( " axes:" + j.getAxisCount() );
for( JoystickAxis axis : j.getAxes() ) {
out.println( " " + axis );
}

Loading…
Cancel
Save