ocamlsdl

Interface between OCaml and SDL
IN THIS PACKAGE
Module Sdljoystick
exception SDLjoystick_exception of string
type t
val num_joysticks : unit -> int
val name : int -> string
val open_joystick : int -> t
val opened : int -> bool
val index : t -> int
val num_axes : t -> int
val num_balls : t -> int
val num_hats : t -> int
val num_buttons : t -> int
val update : t -> unit
val set_event_state : bool -> unit
val get_event_state : unit -> bool
type hat_value = int
val hat_centered : hat_value
val hat_up : hat_value
val hat_right : hat_value
val hat_down : hat_value
val hat_left : hat_value
val hat_rightup : hat_value
val hat_rightdown : hat_value
val hat_leftup : hat_value
val hat_leftdown : hat_value
val get_axis : t -> int -> int
val get_hat : t -> int -> hat_value
val get_ball : t -> int -> int * int
val get_button : t -> int -> bool
val close : t -> unit