mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Input: introduce input_inject_event() function
Create input_inject_event() function which is to be used by input handlers as opposed to input_event() which is reserved for drivers implementing input devices. The difference is that if device is "grabbed" by some process input_inject_event() will ignore events unless sent from the handle that is currently owns the device. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
c7e8dc6ee6
commit
0e739d2876
4 changed files with 49 additions and 21 deletions
|
@ -1053,6 +1053,7 @@ void input_close_device(struct input_handle *);
|
|||
int input_flush_device(struct input_handle* handle, struct file* file);
|
||||
|
||||
void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value);
|
||||
void input_inject_event(struct input_handle *handle, unsigned int type, unsigned int code, int value);
|
||||
|
||||
static inline void input_report_key(struct input_dev *dev, unsigned int code, int value)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue