tri-state-key: send proper input when updating keycodes from userspace
Change-Id: I6a3d2869d7e4c655b02454b91c5bef19a5a815f9
This commit is contained in:
parent
5e0993b0c8
commit
73c07acc75
1 changed files with 7 additions and 2 deletions
|
@ -189,8 +189,13 @@ switch_dev_get_devtree_pdata(struct device *dev)
|
|||
if (data < 600 || data > 603)\
|
||||
return t;\
|
||||
keyCode_slider_##WHICH = data;\
|
||||
if (current_mode == 1)\
|
||||
send_input(keyCode_slider_##WHICH);\
|
||||
if (current_mode == 1) {\
|
||||
send_input(keyCode_slider_top);\
|
||||
} else if (current_mode == 2) {\
|
||||
send_input(keyCode_slider_middle);\
|
||||
} else if (current_mode == 3) {\
|
||||
send_input(keyCode_slider_bottom);\
|
||||
}\
|
||||
return t;\
|
||||
}\
|
||||
static int keyCode_##WHICH##_open(struct inode *inode, struct file *file)\
|
||||
|
|
Loading…
Add table
Reference in a new issue