sfml

Bindings to the SFML multimedia library
IN THIS PACKAGE
Module SFJoystick
val isConnected : joystick:int -> bool
val getButtonCount : joystick:int -> int
val update : unit -> unit
val isButtonPressed : joystick:int -> button:int -> bool
val getMaxJoystickCount : unit -> int
val getMaxJoystickButtonCount : unit -> int
val getMaxJoystickAxisCount : unit -> int
val normaliseDirectionProportional : x:float -> y:float -> float * float
type axis =
| X
| Y
| Z
| R
| U
| V
| PovX
| PovY
val hasAxis : joystick:int -> axis:axis -> bool
val getAxisPosition : joystick:int -> axis:axis -> float
val string_of_axis : axis -> string
val axis_of_string : string -> axis
type identification = {
name : string;
vendor_id : nativeint;
product_id : nativeint;
}
val get_identification : joystick:int -> identification