package allegro5

  1. Overview
  2. Docs
module Touch : sig ... end
module MouseButton : sig ... end
module MouseMove : sig ... end
type t =
  1. | JOYSTICK_AXIS of joystick * int * int * float
  2. | JOYSTICK_BUTTON_DOWN of joystick * int
  3. | JOYSTICK_BUTTON_UP of joystick * int
  4. | JOYSTICK_CONFIGURATION
  5. | KEY_DOWN of Key.t * display
  6. | KEY_UP of Key.t * display
  7. | KEY_CHAR of Key.t * int * int * bool * display
  8. | MOUSE_AXES of MouseMove.t
  9. | MOUSE_BUTTON_DOWN of MouseButton.t
  10. | MOUSE_BUTTON_UP of MouseButton.t
  11. | MOUSE_WARPED of MouseMove.t
  12. | MOUSE_ENTER_DISPLAY of int * int * int * int * display
  13. | MOUSE_LEAVE_DISPLAY of int * int * int * int * display
  14. | TOUCH_BEGIN of Touch.t
  15. | TOUCH_END of Touch.t
  16. | TOUCH_MOVE of Touch.t
  17. | TOUCH_CANCEL of Touch.t
  18. | TIMER of timer * int64
  19. | DISPLAY_EXPOSE of display * int * int * int * int
  20. | DISPLAY_RESIZE of display * int * int * int * int
  21. | DISPLAY_CLOSE of display
  22. | DISPLAY_LOST of display
  23. | DISPLAY_FOUND of display
  24. | DISPLAY_SWITCH_OUT of display
  25. | DISPLAY_SWITCH_IN of display
  26. | DISPLAY_ORIENTATION of display * DisplayOrientation.t
  27. | DISPLAY_HALT_DRAWING
  28. | DISPLAY_RESUME_DRAWING
  29. | DISPLAY_CONNECTED of display
  30. | DISPLAY_DISCONNECTED of display
  31. | DROP of int * int * (string * bool * int * bool) option
  32. | UNKNOWN of int

Note: currently, not all events are implemented.

OCaml

Innovation. Community. Security.