- initialize the joystick subsystem ; | |
- returns true if joystick subsytem is initialized ; | |
- Returns the id of the joystick object. ; | |
- Returns the number of axis controls. ; | |
- Returns the number of trackballs. ; | |
- Returns the number of POV hats. ; | |
- Returns the number of buttons. ; | |
- Returns the current position of an axis control on the joystick. | |
- Returns the current state of a POV hat on the joystick. | |
- Indicates whether the joystick button is down or not. ; | |
- Opens the specified joystick, and returns an object for manipulating it. ; | |
- Returns the number of joysticks attached to the system. ; | |
- Returns the name of the joystick identified by id. ; | |
- Returns whether the joystick identified by id has been opened or not. ; |
get_hat(pov_hat) -> state
HAT_LEFT HAT_CENTERED HAT_RIGHT
HAT_LEFTDOWN HAT_DOWN HAT_RIGHTDOWN\n ;