Module Sdlmouse

module Sdlmouse: sig .. end

Mouse event handling


API Doc: Mouse category

type button = 
| Button_Left
| Button_Middle
| Button_Right
| Button_X1
| Button_X2
| Button_X3
| Button_X4
| Button_X5
type pos = int * int 
val get_state : unit -> pos * button list

api doc

val get_buttons : unit -> button list
val get_pos : unit -> pos
val warp_in_window : Sdlwindow.t -> x:int -> y:int -> unit

api doc

val set_relative_mode : enabled:bool -> unit

api doc

val show_cursor : toggle:bool -> unit

api doc

val cursor_is_shown : unit -> bool

api doc

val to_string : button -> string
val of_string : string -> button