giiEventSend(3)

giiEventSend3

Inject an event into the input

Usage

#include <ggi/gii.h>
int giiEventSend(gii_input_t inp, gii_event *ev);

Overview

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:

1

Simulating input for independent subprograms.

2

Sending events to externally attached programs via specialized inputs, that are actually rather outputs.

3

Sending command events to inputs, like querying the axis of a valuator device.

Return value

giiEventSend returns 0 on success, or an gii-error(3) code otherwise.

Releases

5 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–7

From libgii1 1:1.0.2-4.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.