public void setZAxis( float f ) {
            zAxis = f;
            resetPositions();
        }
Easier to watch for all button and axis events with a raw input listener.
jme3-examples/src/main/java/jme3test/input/TestJoystick.java