Inject an event into the input
Name
giiEventSend : Inject an event into the input
Synopsis
#include <ggi/gii.h> int giiEventSend(gii_input inp, gii_event *ev);
Description
giiEventSend injects an event into the queue. Such events can be identified by '(event->any.target == GII_EV_TARGET_QUEUE)'. There are three main uses for this function:
- Simulating input for independent subprograms.
- Sending events to externally attached programs via specialized inputs, that are actually rather outputs.
- Sending command events to inputs, like querying the axis of a valuator device.
Return value
giiEventSend returns 0 on success, or a gg-error(3) code otherwise.