module Old: sig end
Definition of the event callbacks
|
typekeyboard_event_func =Sdlkey.t -> Sdlevent.switch_state -> int -> int -> unit
typemouse_event_func =Sdlmouse.button -> Sdlevent.switch_state -> int -> int -> unit
typemousemotion_event_func =int -> int -> unit
typeidle_event_func =unit -> unit
typeresize_event_func =int -> int -> unit
Functions for setting the current event callbacks
|
val set_keyboard_event_func : keyboard_event_func -> unitval set_mouse_event_func : mouse_event_func -> unitval set_mousemotion_event_func : mousemotion_event_func -> unitval set_idle_event_func : idle_event_func -> unitval set_resize_event_func : resize_event_func -> unit
Event loop
|
val start_event_loop : unit -> unitval exit_event_loop : unit -> unit