• init() -> None
  • - initialize the joystick subsystem ;
  • get_init() -> bool
  • - returns true if joystick subsytem is initialized ;
  • get_id() -> id
  • - Returns the id of the joystick object. ;
  • get_axes() -> count
  • - Returns the number of axis controls. ;
  • get_balls() -> count
  • - Returns the number of trackballs. ;
  • get_hats() -> count
  • - Returns the number of POV hats. ;
  • get_buttons() -> count
  • - Returns the number of buttons. ;
  • get_axis(axis) -> position
  • - Returns the current position of an axis control on the joystick.
  • get_hat(pov_hat) -> state
  • - Returns the current state of a POV hat on the joystick.
  • get_button(button) -> int
  • - Indicates whether the joystick button is down or not. ;
  • open(id) -> Joystick
  • - Opens the specified joystick, and returns an object for manipulating it. ;
  • get_count() -> int
  • - Returns the number of joysticks attached to the system. ;
  • get_name(id) -> string
  • - Returns the name of the joystick identified by id. ;
  • is_opened(id) -> int
  • - Returns whether the joystick identified by id has been opened or not. ;


    init() -> None


    get_init() -> bool


    get_id() -> id


    get_axes() -> count


    get_balls() -> count


    get_hats() -> count


    get_buttons() -> count


    get_axis(axis) -> position


    get_hat(pov_hat) -> state

    HAT_LEFT HAT_CENTERED HAT_RIGHT HAT_LEFTDOWN HAT_DOWN HAT_RIGHTDOWN\n ;


    get_button(button) -> int


    open(id) -> Joystick


    get_count() -> int


    get_name(id) -> string


    is_opened(id) -> int