Event device access.
More...
Enumerator |
---|
GAMINGGEAR_INPUT_EVENT_VALUE_PRESS |
|
GAMINGGEAR_INPUT_EVENT_VALUE_RELEASE |
|
gboolean gaminggear_input_event_deinit |
( |
GError ** |
error | ) |
|
Deinitialize input event support of libgaminggear.
- Parameters
-
error | Return location for error or NULL . |
- Return values
-
condition | TRUE on success, FALSE else. |
- Since
- 1.0
gboolean gaminggear_input_event_init |
( |
guint |
vendor_id, |
|
|
guint |
product_id, |
|
|
GError ** |
error |
|
) |
| |
Initialize input event support of libgaminggear.
- Parameters
-
vendor_id | The vendor id the device should have. |
product_id | The product id the device should have. |
error | Return location for error or NULL . |
- Return values
-
condition | TRUE on success, FALSE else. |
- Since
- 1.0
void gaminggear_input_event_write_button |
( |
int |
hid, |
|
|
int |
value |
|
) |
| |
Write a mouse button event.
- Parameters
-
hid | mouse button encoded in hid usage id (see GaminggearMacroKeystrokeKey). |
value | GaminggearInputEventValue. |
- Since
- 1.0
void gaminggear_input_event_write_keyboard |
( |
int |
hid, |
|
|
int |
value |
|
) |
| |
Write a keyboard event.
- Parameters
-
hid | usage id of keyboard page. |
value | GaminggearInputEventValue. |
- Since
- 1.0
void gaminggear_input_event_write_keyboard_multi |
( |
int * |
hids, |
|
|
gsize |
length, |
|
|
int |
value |
|
) |
| |
Write multiple keyboard events.
- Parameters
-
hids | of hid usage ids of keyboard page. |
length | of array. |
value | GaminggearInputEventValue. |
- Since
- 1.0
void gaminggear_input_event_write_multimedia |
( |
int |
hid, |
|
|
int |
value |
|
) |
| |
Write a multimedia event.
- Parameters
-
hid | usage id of consumer page. |
value | GaminggearInputEventValue. |
- Since
- 1.0
void gaminggear_input_event_write_multimedia_single |
( |
int |
hid | ) |
|
Write a full multimedia event (press/release).
- Parameters
-
hid | usage id of consumer page. |
- Since
- 1.0