SPARSE_KEYMAP_REPORT
Section: Input Subsystem (9)
Updated: February 2011
Index
Return to Main Contents
NAME
sparse_keymap_report_event - report event corresponding to given scancode
SYNOPSIS
-
bool sparse_keymap_report_event(struct input_dev * dev, unsigned int code, unsigned int value, bool autorelease);
ARGUMENTS
dev
-
- Input device using sparse keymap
code
-
Scan code
value
-
Value that should be reported (ignored by
KE_SW
entries)
autorelease
-
Signals whether release event should be emitted for
KE_KEY
entries right after reporting press event, ignored by all other entries
DESCRIPTION
This function is used to perform lookup in an input device using sparse keymap and report corresponding event. Returns
true
if lookup was successful and
false
otherwise.
COPYRIGHT