package sfml

  1. Overview
  2. Docs

Online documentation for the Joystick class

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 =
  1. | X
  2. | Y
  3. | Z
  4. | R
  5. | U
  6. | V
  7. | PovX
  8. | 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 = {
  1. name : string;
  2. vendor_id : nativeint;
  3. product_id : nativeint;
}
val get_identification : joystick:int -> identification
OCaml

Innovation. Community. Security.