package libinput
Module Input.EventSource
Events (e.g. keypresses) reported to the application from libinput.
An event notification related to a device.
Use get to get the next event from libinput.
See https://wayland.freedesktop.org/libinput/doc/latest/api/group__base.html
get context retrieves the next event from libinput's internal event queue.
Events are added to the queue by Context.dispatch. Use get_type to examine the event.
destroy t frees the C event and marks the OCaml wrapper as destroyed.
This will be called automatically when the event gets GC'd anyway, but you may prefer to free the event manually earlier.
Events from graphics tablet tools (e.g. pens).
Events from graphics tablet controls.
type ty = [ | Device.ty| Keyboard.ty| Pointer.ty| Touch.ty| Tablet_tool.ty| Tablet_pad.ty| Gesture.ty| Switch.ty| `Unknown of [ `Unknown ] t
]get_type t classifies an event by its type, and provides access to type-specific details.