Event device access. More...
Functions | |
int | gaminggear_open_misc_evdev (gchar const *identifier, guint vendor, guint product, GError **error) |
Opens uinput device supporting mouse buttons and multimedia keys. More... | |
void | gaminggear_close_misc_evdev (int fd, GError **error) |
Closes uinput device. More... | |
void | gaminggear_input_event_write_with_sync (int fd, int code, int value) |
Write an event to evdev. More... | |
void | gaminggear_input_event_write_single (int fd, int code) |
Write press and release event to evdev. More... | |
Event device access.
void gaminggear_close_misc_evdev | ( | int | fd, |
GError ** | error | ||
) |
Closes uinput device.
void gaminggear_input_event_write_single | ( | int | fd, |
int | code | ||
) |
Write press and release event to evdev.
void gaminggear_input_event_write_with_sync | ( | int | fd, |
int | code, | ||
int | value | ||
) |
Write an event to evdev.
int gaminggear_open_misc_evdev | ( | gchar const * | identifier, |
guint | vendor, | ||
guint | product, | ||
GError ** | error | ||
) |
Opens uinput device supporting mouse buttons and multimedia keys.
It takes some time until device is created.
descriptor | If successful returns file descriptor that has to be closed with gaminggear_close_misc_evdev() , -1 on error. |