---
name: "input_event"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/input_event"
---

# input\_event(9)

report new input event

## NAME

input\_event - report new input event

## SYNOPSIS

**void input\_event(struct input\_dev \*** *dev***, unsigned int** *type***, unsigned int** *code***, int** *value***);**

## ARGUMENTS

*dev*

device that generated the event

*type*

type of the event

*code*

event code

*value*

value of the event

## DESCRIPTION

This function should be used by drivers implementing various input devices to report input events. See also **input\_inject\_event**.

## NOTE

**input\_event** may be safely used right after input device was allocated with **input\_allocate\_device**, even before it is registered with **input\_register\_device**, but the event will not reach any of the input handlers. Such early invocation of **input\_event** may be used to 'seed' initial state of a switch or initial position of absolute axis, etc.

## COPYRIGHT
