Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| kgideviceapi [2018/03/18 18:24] – wiki markup. this page is stale. MarkLinimon | kgideviceapi [2022/06/10 02:25] (current) – Remove page: content now on KGI KubilayKocak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== 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; | ||
| - | </ | ||
| - | |||
| - | ---- | ||
| - | |||
| - | {{tag> | ||