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/SFMouse/index.html

Module SFMouse

Online documentation for the Mouse class

type mouse_button =
  1. | ButtonLeft
  2. | ButtonRight
  3. | ButtonMiddle
  4. | ButtonX1
  5. | ButtonX2
type mouse_wheel =
  1. | VerticalWheel
  2. | HorizontalWheel
val getButtonCount : unit -> int
val isButtonPressed : button:mouse_button -> bool
val getPosition : unit -> int * int
val setPosition : pos:(int * int) -> unit
val string_of_button : mouse_button -> string
val button_of_string : string -> mouse_button
val string_of_wheel : mouse_wheel -> string
val wheel_of_string : string -> mouse_wheel
OCaml

Innovation. Community. Security.