private void resetState() {
            if( state <= 0 ) {
                setCullHint( CullHint.Always );
            } else {
                setCullHint( CullHint.Dynamic );
            }
            
            System.out.println( getName() + " state:" + state );
        }
Easier to watch for all button and axis events with a raw input listener.
jme3-examples/src/main/java/jme3test/input/TestJoystick.java