hat_dir           690 drivers/hid/hid-input.c 			case HID_GD_UP:	   usage->hat_dir = 1; break;
hat_dir           691 drivers/hid/hid-input.c 			case HID_GD_DOWN:  usage->hat_dir = 5; break;
hat_dir           692 drivers/hid/hid-input.c 			case HID_GD_RIGHT: usage->hat_dir = 3; break;
hat_dir           693 drivers/hid/hid-input.c 			case HID_GD_LEFT:  usage->hat_dir = 7; break;
hat_dir          1199 drivers/hid/hid-input.c 	    (usage->hat_min < usage->hat_max || usage->hat_dir)) {
hat_dir          1205 drivers/hid/hid-input.c 		if (usage->hat_dir && !field->dpad)
hat_dir          1281 drivers/hid/hid-input.c 	if (usage->hat_min < usage->hat_max || usage->hat_dir) {
hat_dir          1282 drivers/hid/hid-input.c 		int hat_dir = usage->hat_dir;
hat_dir          1283 drivers/hid/hid-input.c 		if (!hat_dir)
hat_dir          1284 drivers/hid/hid-input.c 			hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1;
hat_dir          1285 drivers/hid/hid-input.c 		if (hat_dir < 0 || hat_dir > 8) hat_dir = 0;
hat_dir          1286 drivers/hid/hid-input.c 		input_event(input, usage->type, usage->code    , hid_hat_to_axis[hat_dir].x);
hat_dir          1287 drivers/hid/hid-input.c 		input_event(input, usage->type, usage->code + 1, hid_hat_to_axis[hat_dir].y);
hat_dir           441 include/linux/hid.h 	__s8	  hat_dir;		/* ditto */