Module 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.

val handle_mouse_button_event : Tsdl.Sdl.event -> Mouse.t -> Mouse.t * Event.t list

Handle an SDL mouse button event, updating the mouse state and returning unified events.

val handle_mouse_motion_event : Tsdl.Sdl.event -> Mouse.t -> Mouse.t * Event.t list

Handle an SDL mouse motion event, updating the mouse position and returning unified events.

val handle_mouse_wheel_event : Tsdl.Sdl.event -> Mouse.t -> Mouse.t * Event.t list

Handle an SDL mouse wheel event, updating the scroll state and returning unified events.

val handle_event : Tsdl.Sdl.event -> Mouse.t -> Mouse.t * Event.t list

Process any SDL mouse-related event, updating the mouse state and returning unified events.