package sfml

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.09.tar.gz
sha256=75e28f425d6c40f39f7aac53b413da3d48ecd50aa88cdf644d38a14897a59a30
md5=01ffc5b471d774f2d6234c639b067f04

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.