package sfml

  1. Overview
  2. Docs

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