com.centralnexus.input
Interface JoystickListener


public interface JoystickListener

The listener interface for receiving joystick events. A Joystick will periodically notify the implementor of this listener of changes to the attached joystick. It is not neccessary to call the poll function on the joystick when this interface is implemented.

Since:
July 8, 2001
See Also:
Joystick

Method Summary
 void joystickAxisChanged(Joystick j)
          Implement this function to get periodically notified that a joystick changed one of its axis values.
 void joystickButtonChanged(Joystick j)
          Implement this function to get periodically notified that a joystick button changed one of its values.
 

Method Detail

joystickAxisChanged

public void joystickAxisChanged(Joystick j)
Implement this function to get periodically notified that a joystick changed one of its axis values.

Parameters:
j - The joystick that was recently polled.

joystickButtonChanged

public void joystickButtonChanged(Joystick j)
Implement this function to get periodically notified that a joystick button changed one of its values.

Parameters:
j - The joystick that was recently polled.


Copyright © 2000-2003 George Rhoten
Java is a registered trademark of Sun Microsystems, Inc.