input_event(9)

input_event9

Report new input event

Usage

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

Overview

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.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.