kgi_device_t
- The unique identifier of the device
kgi_u_t id;
The identifier of the KgiDisplay the device interacts with
kgi_u_t dpy_id;
- Various flags
kgi_device_flags_t flags;
- Currently set mode for the device
kgi_mode_t *mode;
- Per device instance private data
kgi_private_t priv;
The three methods of a KGI device are callbacks called by KGI on KGI events:
- When the device is mapped to its display
kgi_device_map_device_fn *MapDevice;
- When the device is unmapped from its display
kgi_device_unmap_device_fn *UnmapDevice;
When a KiiEvent has to be delivered to the KGI device
kgi_device_handle_event_fn *HandleEvent;