libgaminggear
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
evdev.h File Reference

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...
 

Detailed Description

Event device access.

Function Documentation

void gaminggear_close_misc_evdev ( int  fd,
GError **  error 
)

Closes uinput device.

Since
1.0
void gaminggear_input_event_write_single ( int  fd,
int  code 
)

Write press and release event to evdev.

Since
1.0
void gaminggear_input_event_write_with_sync ( int  fd,
int  code,
int  value 
)

Write an event to evdev.

Since
1.0
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.

Return values
descriptorIf successful returns file descriptor that has to be closed with gaminggear_close_misc_evdev(), -1 on error.
Since
1.0