'\" t .\" Title: input_event .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Input Subsystem .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "INPUT_EVENT" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Input Subsystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" input_event \- report new input event .SH "SYNOPSIS" .HP \w'void\ input_event('u .BI "void input_event(struct\ input_dev\ *\ " "dev" ", unsigned\ int\ " "type" ", unsigned\ int\ " "code" ", int\ " "value" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device that generated the event .RE .PP \fItype\fR .RS 4 type of the event .RE .PP \fIcode\fR .RS 4 event code .RE .PP \fIvalue\fR .RS 4 value of the event .RE .SH "DESCRIPTION" .PP This function should be used by drivers implementing various input devices to report input events\&. See also \fBinput_inject_event\fR\&. .SH "NOTE" .PP \fBinput_event\fR may be safely used right after input device was allocated with \fBinput_allocate_device\fR, even before it is registered with \fBinput_register_device\fR, but the event will not reach any of the input handlers\&. Such early invocation of \fBinput_event\fR may be used to \*(Aqseed\*(Aq initial state of a switch or initial position of absolute axis, etc\&. .SH "COPYRIGHT" .br