Claudius.Mousesdl
val of_sdl_button : int -> Mouse.button
Convert an SDL button code to a Mouse.button
.
val to_sdl_button : Mouse.button -> int
Convert a Mouse.button
to its SDL representation.
Handle an SDL mouse button event, updating the mouse state and returning unified events.
Handle an SDL mouse motion event, updating the mouse position and returning unified events.
Handle an SDL mouse wheel event, updating the scroll state and returning unified events.