1 #ifndef _SPARSE_KEYMAP_H
2 #define _SPARSE_KEYMAP_H
17 #define KE_LAST KE_IGNORE
47 struct key_entry *sparse_keymap_entry_from_scancode(
struct input_dev *
dev,
49 struct key_entry *sparse_keymap_entry_from_keycode(
struct input_dev *
dev,
51 int sparse_keymap_setup(
struct input_dev *
dev,
52 const struct key_entry *keymap,
53 int (*
setup)(
struct input_dev *,
struct key_entry *));
54 void sparse_keymap_free(
struct input_dev *dev);
56 void sparse_keymap_report_entry(
struct input_dev *dev,
const struct key_entry *ke,
57 unsigned int value,
bool autorelease);
59 bool sparse_keymap_report_event(
struct input_dev *dev,
unsigned int code,
60 unsigned int value,
bool autorelease);