package ocamlsdl2

  1. Overview
  2. Docs
type button = Sdlmouse.button =
  1. | Button_Left
  2. | Button_Middle
  3. | Button_Right
  4. | Button_X1
  5. | Button_X2
  6. | Button_X3
  7. | Button_X4
  8. | Button_X5
type pos = int * int
val get_state : unit -> pos * button list
val get_buttons : unit -> button list
val get_pos : unit -> pos
val warp_in_window : Sdlwindow.t -> x:int -> y:int -> unit
val to_string : button -> string
val of_string : string -> button
OCaml

Innovation. Community. Security.