Input.EventEvents (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.
val destroy : _ t -> unitdestroy 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.
module Device : sig ... endEvents about devices being added and removed.
module Keyboard : sig ... endEvents from keyboard devices.
module Pointer : sig ... endEvents from mice, touchpads, etc.
module Touch : sig ... endEvents from touch screens (but not graphics tablets or touchpads).
module Tablet_tool : sig ... endEvents from graphics tablet tools (e.g. pens).
module Tablet_pad : sig ... endEvents from graphics tablet controls.
module Gesture : sig ... endGestures (e.g. pinch-to-zoom on a touchpad).
module Switch : sig ... endSimple on/off switches.
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.