package sfml

  1. Overview
  2. Docs

Online documentation for the Event class

type t =
  1. | Closed
  2. | MouseMoved of int * int
    (*

    x, y

    *)
  3. | Resized of int * int
    (*

    width, height

    *)
  4. | MouseButtonPressed of SFMouse.mouse_button * int * int
    (*

    x, y

    *)
  5. | MouseButtonReleased of SFMouse.mouse_button * int * int
    (*

    x, y

    *)
  6. | MouseWheelMoved of int * int * int
    (*

    delta, x, y

    • deprecated Use MouseWheelScrolled instead
    *)
  7. | MouseWheelScrolled of SFMouse.mouse_wheel * float * int * int
    (*

    wheel, delta, x, y

    *)
  8. | KeyPressed of SFKey.t * bool * bool * bool * bool
    (*

    alt, control, shift, system

    *)
  9. | KeyReleased of SFKey.t * bool * bool * bool * bool
    (*

    alt, control, shift, system

    *)
  10. | TextEntered of int32
  11. | MouseEntered
  12. | MouseLeft
  13. | LostFocus
  14. | GainedFocus
  15. | JoystickMoved of int * SFJoystick.axis * float
    (*

    joystickId, axis, position

    *)
  16. | JoystickButtonPressed of int * int
    (*

    joystickId, button

    *)
  17. | JoystickButtonReleased of int * int
    (*

    joystickId, button

    *)
  18. | JoystickConnected of int
    (*

    joystickId

    *)
  19. | JoystickDisconnected of int
    (*

    joystickId

    *)
  20. | TouchBegan of int * int * int
    (*

    finger, x, y

    *)
  21. | TouchMoved of int * int * int
    (*

    finger, x, y

    *)
  22. | TouchEnded of int * int * int
    (*

    finger, x, y

    *)
  23. | SensorChanged of SFSensor.sensor_type * float * float * float
    (*

    type, x, y, z

    *)