---
name: "giiEventSend"
section: "3gii"
platform: "linux"
package: "libgii0-dev"
version: "1:0.8.1-1"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/giiEventSend/3gii"
---

# giiEventSend(3gii)

inject an event into the input

## NAME

giiEventSend - inject an event into the input

## SYNOPSIS

**#include \<ggi/gii.h\>**

**int giiEventSend(gii\_input\_t** *inp***, gii\_event \****ev***);** .SH "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 an error code otherwise.

## SEE ALSO

[**giiEventPoll**(3)](/giiEventPoll/3.md)
