Module OgamlCore.LL.Mouse

Getting real-time mouse information

This modules provides a low-level access to the mouse in real-time. You should probably use the OgamlGraphics.Mouse wrapper instead.

val position : unit -> OgamlMath.Vector2i.t
Returns the postion of the mouse in screen coordinates
See : OgamlMath.Vector2i
val relative_position : Window.t -> OgamlMath.Vector2i.t
Returns the position of the mouse relatively to a window
See : OgamlCore.LL.Window
See : OgamlMath.Vector2i
val set_position : OgamlMath.Vector2i.t -> unit
Sets the position of the cursor relatively to the screen
See : OgamlMath.Vector2i
val set_relative_position : Window.t -> OgamlMath.Vector2i.t -> unit
Sets the position of the cursor relatively to a window
See : OgamlCore.LL.Window
See : OgamlMath.Vector2i
val is_pressed : Button.t -> bool
Returns true iff the given button is currently held down by the user
See : OgamlCore.Button