Home
last modified time | relevance | path

Searched refs:hat_dir (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/hid/
H A Dhid-input.c849 case HID_GD_UP: usage->hat_dir = 1; break; in hidinput_configure_usage()
850 case HID_GD_DOWN: usage->hat_dir = 5; break; in hidinput_configure_usage()
851 case HID_GD_RIGHT: usage->hat_dir = 3; break; in hidinput_configure_usage()
852 case HID_GD_LEFT: usage->hat_dir = 7; break; in hidinput_configure_usage()
1419 (usage->hat_min < usage->hat_max || usage->hat_dir)) { in hidinput_configure_usage()
1425 if (usage->hat_dir && !field->dpad) in hidinput_configure_usage()
1534 if (usage->hat_min < usage->hat_max || usage->hat_dir) { in hidinput_hid_event()
1535 int hat_dir = usage->hat_dir; in hidinput_hid_event() local
1536 if (!hat_dir) in hidinput_hid_event()
1537 hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1; in hidinput_hid_event()
[all …]
/linux/include/linux/
H A Dhid.h481 __s16 hat_dir; /* ditto */ member