@Override
    public JoystickButton getButton(String logicalId) {
        for (JoystickButton b : buttons) {
            if (b.getLogicalId().equals(logicalId))
                return b;
        }
        return null;
    }
Returns the number of axes on this joystick.

@return the number of axes on this joystick.
jme3-core/src/main/java/com/jme3/input/AbstractJoystick.java