package ocamlsdl2

  1. Overview
  2. Docs
type t = Sdljoystick.t
val num_joysticks : unit -> int
val name_for_index : device_index:int -> string
val j_open : device_index:int -> t
val close : t -> unit
val num_axes : t -> int
val num_hats : t -> int
val get_axis : t -> axis:int -> int
val get_button : t -> button:int -> int
OCaml

Innovation. Community. Security.