package sfml

  1. Overview
  2. Docs
Bindings to the SFML multimedia library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-sfml-0.09.2.tar.gz
sha256=ce1e50dec69a4495232261627a359a8fb54d79788147380bee78b0983f8b6951
md5=9ae99bb47bb68d5181d01b7bbc78a351

doc/sfml.window/SFJoystick/index.html

Module SFJoystick

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.