Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/hid/
Dhid-input.c697 case HID_GD_UP: usage->hat_dir = 1; break; in hidinput_configure_usage()
698 case HID_GD_DOWN: usage->hat_dir = 5; break; in hidinput_configure_usage()
699 case HID_GD_RIGHT: usage->hat_dir = 3; break; in hidinput_configure_usage()
700 case HID_GD_LEFT: usage->hat_dir = 7; break; in hidinput_configure_usage()
1216 (usage->hat_min < usage->hat_max || usage->hat_dir)) { in hidinput_configure_usage()
1222 if (usage->hat_dir && !field->dpad) in hidinput_configure_usage()
1304 if (usage->hat_min < usage->hat_max || usage->hat_dir) { in hidinput_hid_event()
1305 int hat_dir = usage->hat_dir; in hidinput_hid_event() local
1306 if (!hat_dir) in hidinput_hid_event()
1307 hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1; in hidinput_hid_event()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dhid.h447 __s8 hat_dir; /* ditto */ member