Lines 604-609
static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
Link Here
|
604 |
break; |
604 |
break; |
605 |
} |
605 |
} |
606 |
|
606 |
|
|
|
607 |
/* |
608 |
* Some lazy vendors declare 255 usages for System Control, |
609 |
* leading to the creation of ABS_X|Y axis and too many others. |
610 |
* It wouldn't be a problem if joydev doesn't consider the |
611 |
* device as a joystick then. |
612 |
*/ |
613 |
if (field->application == HID_GD_SYSTEM_CONTROL) |
614 |
goto ignore; |
615 |
|
607 |
if ((usage->hid & 0xf0) == 0x90) { /* D-pad */ |
616 |
if ((usage->hid & 0xf0) == 0x90) { /* D-pad */ |
608 |
switch (usage->hid) { |
617 |
switch (usage->hid) { |
609 |
case HID_GD_UP: usage->hat_dir = 1; break; |
618 |
case HID_GD_UP: usage->hat_dir = 1; break; |