mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
Merge branch 'for-4.16/elo' into for-linus
Pull hid-elo device detection fix
This commit is contained in:
commit
a44f3ec625
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,12 @@ static int elo_input_configured(struct hid_device *hdev,
|
||||||
{
|
{
|
||||||
struct input_dev *input = hidinput->input;
|
struct input_dev *input = hidinput->input;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ELO devices have one Button usage in GenDesk field, which makes
|
||||||
|
* hid-input map it to BTN_LEFT; that confuses userspace, which then
|
||||||
|
* considers the device to be a mouse/touchpad instead of touchscreen.
|
||||||
|
*/
|
||||||
|
clear_bit(BTN_LEFT, input->keybit);
|
||||||
set_bit(BTN_TOUCH, input->keybit);
|
set_bit(BTN_TOUCH, input->keybit);
|
||||||
set_bit(ABS_PRESSURE, input->absbit);
|
set_bit(ABS_PRESSURE, input->absbit);
|
||||||
input_set_abs_params(input, ABS_PRESSURE, 0, 256, 0, 0);
|
input_set_abs_params(input, ABS_PRESSURE, 0, 256, 0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue