OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
include
/
linux
/
input
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:23 AM
rwxr-xr-x
📄
ad714x.h
1.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
adp5589.h
5.64 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
adxl34x.h
11.3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
as5011.h
545 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
auo-pixcir-ts.h
1.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bu21013.h
741 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cma3000.h
1.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cy8ctmg110_pdata.h
262 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cyttsp.h
1.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
elan-i2c-ids.h
2.01 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
gp2ap002a00f.h
671 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
gpio_tilt.h
1.98 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ili210x.h
207 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kxtj9.h
1.74 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
lm8333.h
674 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
matrix_keypad.h
2.96 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mt.h
3.4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
navpoint.h
393 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
samsung-keypad.h
1.3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sh_keysc.h
431 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sparse-keymap.h
2.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
touchscreen.h
909 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tps6507x-ts.h
535 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: sparse-keymap.h
Close
#ifndef _SPARSE_KEYMAP_H #define _SPARSE_KEYMAP_H /* * Copyright (c) 2009 Dmitry Torokhov * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. */ #define KE_END 0 /* Indicates end of keymap */ #define KE_KEY 1 /* Ordinary key/button */ #define KE_SW 2 /* Switch (predetermined value) */ #define KE_VSW 3 /* Switch (value supplied at runtime) */ #define KE_IGNORE 4 /* Known entry that should be ignored */ #define KE_LAST KE_IGNORE /** * struct key_entry - keymap entry for use in sparse keymap * @type: Type of the key entry (KE_KEY, KE_SW, KE_VSW, KE_END); * drivers are allowed to extend the list with their own * private definitions. * @code: Device-specific data identifying the button/switch * @keycode: KEY_* code assigned to a key/button * @sw.code: SW_* code assigned to a switch * @sw.value: Value that should be sent in an input even when KE_SW * switch is toggled. KE_VSW switches ignore this field and * expect driver to supply value for the event. * * This structure defines an entry in a sparse keymap used by some * input devices for which traditional table-based approach is not * suitable. */ struct key_entry { int type; /* See KE_* above */ u32 code; union { u16 keycode; /* For KE_KEY */ struct { /* For KE_SW, KE_VSW */ u8 code; u8 value; /* For KE_SW, ignored by KE_VSW */ } sw; }; }; struct key_entry *sparse_keymap_entry_from_scancode(struct input_dev *dev, unsigned int code); struct key_entry *sparse_keymap_entry_from_keycode(struct input_dev *dev, unsigned int code); int sparse_keymap_setup(struct input_dev *dev, const struct key_entry *keymap, int (*setup)(struct input_dev *, struct key_entry *)); void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke, unsigned int value, bool autorelease); bool sparse_keymap_report_event(struct input_dev *dev, unsigned int code, unsigned int value, bool autorelease); #endif /* _SPARSE_KEYMAP_H */