Home
last modified time | relevance | path

Searched refs:EV_KEY (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/linux/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py177 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 0
201 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
209 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0
210 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
233 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
248 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0
273 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
298 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
299 assert evdev.value[libevdev.EV_KEY.KEY_F6] == 1
300 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
[all …]
H A Dtest_keyboard.py275 assert evdev.value[libevdev.EV_KEY.KEY_A] == 1
283 assert evdev.value[libevdev.EV_KEY.KEY_A] == 0
297 assert evdev.value[libevdev.EV_KEY.KEY_A] == 1
306 assert evdev.value[libevdev.EV_KEY.KEY_A] == 0
307 assert evdev.value[libevdev.EV_KEY.KEY_Q] == 0
315 assert evdev.value[libevdev.EV_KEY.KEY_C] == 1
324 assert evdev.value[libevdev.EV_KEY.KEY_C] == 1
325 assert evdev.value[libevdev.EV_KEY.KEY_SPACE] == 1
334 assert evdev.value[libevdev.EV_KEY.KEY_C] == 0
335 assert evdev.value[libevdev.EV_KEY.KEY_SPACE] == 1
[all …]
H A Dbase.py37 libevdev.EV_KEY.BTN_START,
47 libevdev.EV_KEY.BTN_START,
55 libevdev.EV_KEY.KEY_A,
67 libevdev.EV_KEY.BTN_LEFT,
75 libevdev.EV_KEY.BTN_0,
79 libevdev.EV_KEY.BTN_TOUCH,
88 libevdev.EV_KEY.BTN_STYLUS,
108 libevdev.EV_KEY.BTN_LEFT,
112 excludes=[libevdev.EV_KEY.BTN_TOOL_PEN, libevdev.EV_KEY.BTN_STYLUS],
122 libevdev.EV_KEY.BTN_TOUCH,
[all …]
H A Dtest_mouse.py552 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
559 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 0
566 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 1
580 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
587 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 0
597 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
598 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
605 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
606 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 0
613 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 0
[all …]
H A Dtest_multitouch.py637 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
647 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
803 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
872 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
920 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
991 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
997 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 0
1003 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
1009 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 0
1015 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
[all …]
H A Dtest_wacom_generic.py647 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
650 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1),
659 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 0),
672 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 0),
714 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS, 1),
722 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS, 0),
730 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS2, 1),
738 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS2, 0),
795 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1),
845 libevdev.InputEvent(libevdev.EV_KEY.BTN_0, 1),
[all …]
H A Dtest_tablet.py29 PEN = libevdev.EV_KEY.BTN_TOOL_PEN
30 RUBBER = libevdev.EV_KEY.BTN_TOOL_RUBBER
36 PRIMARY_PRESSED = libevdev.EV_KEY.BTN_STYLUS
37 SECONDARY_PRESSED = libevdev.EV_KEY.BTN_STYLUS2
38 THIRD_PRESSED = libevdev.EV_KEY.BTN_STYLUS3
71 evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
76 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
79 tool = ToolType(libevdev.EV_KEY.BTN_TOOL_PEN)
81 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
82 or evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
[all …]
H A Dtest_sony.py148 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events
157 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 0) in events
176 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events
177 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
186 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH) not in events
187 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
/linux/drivers/hid/
H A Dhid-steam.c740 input_set_capability(input, EV_KEY, BTN_TR2); in steam_input_register()
741 input_set_capability(input, EV_KEY, BTN_TL2); in steam_input_register()
742 input_set_capability(input, EV_KEY, BTN_TR); in steam_input_register()
743 input_set_capability(input, EV_KEY, BTN_TL); in steam_input_register()
744 input_set_capability(input, EV_KEY, BTN_Y); in steam_input_register()
745 input_set_capability(input, EV_KEY, BTN_B); in steam_input_register()
746 input_set_capability(input, EV_KEY, BTN_X); in steam_input_register()
747 input_set_capability(input, EV_KEY, BTN_A); in steam_input_register()
753 input_set_capability(input, EV_KEY, BTN_MODE); in steam_input_register()
754 input_set_capability(input, EV_KEY, BTN_START); in steam_input_register()
[all …]
H A Dhid-ite.c53 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22); in ite_input_mapping()
58 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23); in ite_input_mapping()
83 input_event(input, EV_KEY, KEY_RFKILL, 1); in ite_event()
85 input_event(input, EV_KEY, KEY_RFKILL, 0); in ite_event()
H A Dhid-letsketch.c116 input_set_capability(input, EV_KEY, BTN_TOUCH); in letsketch_setup_input_tablet()
117 input_set_capability(input, EV_KEY, BTN_TOOL_PEN); in letsketch_setup_input_tablet()
118 input_set_capability(input, EV_KEY, BTN_STYLUS); in letsketch_setup_input_tablet()
119 input_set_capability(input, EV_KEY, BTN_STYLUS2); in letsketch_setup_input_tablet()
139 input_set_capability(input, EV_KEY, BTN_0 + i); in letsketch_setup_input_tablet_pad()
147 input_set_capability(input, EV_KEY, BTN_STYLUS); in letsketch_setup_input_tablet_pad()
H A Dhid-zydacron.c43 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
123 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event()
152 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event()
/linux/drivers/input/joystick/
H A Dn64joy.c289 input_set_capability(dev, EV_KEY, BTN_DPAD_UP); in n64joy_probe()
294 input_set_capability(dev, EV_KEY, BTN_LEFT); in n64joy_probe()
295 input_set_capability(dev, EV_KEY, BTN_RIGHT); in n64joy_probe()
296 input_set_capability(dev, EV_KEY, BTN_FORWARD); in n64joy_probe()
297 input_set_capability(dev, EV_KEY, BTN_BACK); in n64joy_probe()
299 input_set_capability(dev, EV_KEY, BTN_START); in n64joy_probe()
300 input_set_capability(dev, EV_KEY, BTN_Z); in n64joy_probe()
302 input_set_capability(dev, EV_KEY, BTN_0); in n64joy_probe()
303 input_set_capability(dev, EV_KEY, BTN_1); in n64joy_probe()
304 input_set_capability(dev, EV_KEY, BTN_2); in n64joy_probe()
[all …]
H A Dpsxpad-spi.c324 input_set_capability(idev, EV_KEY, BTN_A); in psxpad_spi_probe()
325 input_set_capability(idev, EV_KEY, BTN_B); in psxpad_spi_probe()
326 input_set_capability(idev, EV_KEY, BTN_X); in psxpad_spi_probe()
327 input_set_capability(idev, EV_KEY, BTN_Y); in psxpad_spi_probe()
328 input_set_capability(idev, EV_KEY, BTN_TL); in psxpad_spi_probe()
329 input_set_capability(idev, EV_KEY, BTN_TR); in psxpad_spi_probe()
330 input_set_capability(idev, EV_KEY, BTN_TL2); in psxpad_spi_probe()
331 input_set_capability(idev, EV_KEY, BTN_TR2); in psxpad_spi_probe()
332 input_set_capability(idev, EV_KEY, BTN_THUMBL); in psxpad_spi_probe()
333 input_set_capability(idev, EV_KEY, BTN_THUMBR); in psxpad_spi_probe()
[all …]
H A Dgamecon.c833 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in gc_setup_pad()
846 input_set_capability(input_dev, EV_KEY, gc_n64_btn[i]); in gc_setup_pad()
863 input_set_capability(input_dev, EV_KEY, BTN_LEFT); in gc_setup_pad()
864 input_set_capability(input_dev, EV_KEY, BTN_RIGHT); in gc_setup_pad()
871 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad()
876 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad()
880 input_set_capability(input_dev, EV_KEY, BTN_THUMB); in gc_setup_pad()
884 input_set_capability(input_dev, EV_KEY, BTN_TRIGGER); in gc_setup_pad()
892 input_set_capability(input_dev, EV_KEY, gc_psx_btn[i]); in gc_setup_pad()
899 input_set_capability(input_dev, EV_KEY, in gc_setup_pad()
[all …]
/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h700-anbernic-rg35xx-2024.dts34 linux,input-type = <EV_KEY>;
41 linux,input-type = <EV_KEY>;
48 linux,input-type = <EV_KEY>;
55 linux,input-type = <EV_KEY>;
62 linux,input-type = <EV_KEY>;
69 linux,input-type = <EV_KEY>;
76 linux,input-type = <EV_KEY>;
83 linux,input-type = <EV_KEY>;
90 linux,input-type = <EV_KEY>;
97 linux,input-type = <EV_KEY>;
[all …]
H A Dsun50i-h700-anbernic-rg35xx-h.dts18 linux,input-type = <EV_KEY>;
25 linux,input-type = <EV_KEY>;
/linux/drivers/input/misc/
H A Dsoc_button_array.c281 info->event_type = EV_KEY; in soc_button_parse_btn_desc()
496 { "power", 0, EV_KEY, KEY_POWER, false, true, true },
497 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, true },
498 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true },
499 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
527 { "power", 0, EV_KEY, KEY_POWER, false, true, true },
528 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, false },
529 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true },
530 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
587 { "power", 0, EV_KEY, KEY_POWER, false, true, true },
[all …]
/linux/net/rfkill/
H A Dinput.c196 if (type == EV_KEY && data == 1) { in rfkill_event()
277 .evbit = { BIT_MASK(EV_KEY) },
282 .evbit = { BIT_MASK(EV_KEY) },
287 .evbit = { BIT_MASK(EV_KEY) },
292 .evbit = { BIT_MASK(EV_KEY) },
297 .evbit = { BIT_MASK(EV_KEY) },
/linux/drivers/platform/surface/
H A Dsurfacepro3_button.c221 input_set_capability(input, EV_KEY, KEY_POWER); in surface_button_add()
222 input_set_capability(input, EV_KEY, KEY_LEFTMETA); in surface_button_add()
223 input_set_capability(input, EV_KEY, KEY_VOLUMEUP); in surface_button_add()
224 input_set_capability(input, EV_KEY, KEY_VOLUMEDOWN); in surface_button_add()
/linux/drivers/input/mouse/
H A Dlogips2pp.c277 input_set_capability(input_dev, EV_KEY, BTN_SIDE); in ps2pp_set_model_properties()
280 input_set_capability(input_dev, EV_KEY, BTN_EXTRA); in ps2pp_set_model_properties()
283 input_set_capability(input_dev, EV_KEY, BTN_TASK); in ps2pp_set_model_properties()
286 input_set_capability(input_dev, EV_KEY, BTN_FORWARD); in ps2pp_set_model_properties()
287 input_set_capability(input_dev, EV_KEY, BTN_BACK); in ps2pp_set_model_properties()
436 input_set_capability(psmouse->dev, EV_KEY, BTN_MIDDLE); in ps2pp_detect()
/linux/drivers/input/keyboard/
H A Dgpio_keys.c109 BUG_ON(type != EV_SW && type != EV_KEY); in get_n_events_by_type()
111 return (type == EV_KEY) ? KEY_CNT : SW_CNT; in get_n_events_by_type()
125 BUG_ON(type != EV_SW && type != EV_KEY); in get_bm_events_by_type()
127 return (type == EV_KEY) ? dev->keybit : dev->swbit; in get_bm_events_by_type()
312 ATTR_SHOW_FN(keys, EV_KEY, false);
314 ATTR_SHOW_FN(disabled_keys, EV_KEY, true);
343 ATTR_STORE_FN(disabled_keys, EV_KEY);
372 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
430 (button->type == 0 || button->type == EV_KEY)) { in gpio_keys_gpio_isr()
637 if (button->type && button->type != EV_KEY) { in gpio_keys_setup_key()
[all …]
H A Dcros_ec_keyb.c87 .ev_type = EV_KEY,
92 .ev_type = EV_KEY,
97 .ev_type = EV_KEY,
102 .ev_type = EV_KEY,
107 .ev_type = EV_KEY,
112 .ev_type = EV_KEY,
290 ev_type = EV_KEY; in cros_ec_keyb_work()
515 if ((map->ev_type == EV_KEY && (buttons & BIT(map->bit))) || in cros_ec_keyb_register_bs()
/linux/drivers/input/
H A Dinput-mt.c60 __set_bit(EV_KEY, dev->evbit); in input_mt_init_slots()
177 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1); in input_mt_report_finger_count()
178 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); in input_mt_report_finger_count()
179 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); in input_mt_report_finger_count()
180 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); in input_mt_report_finger_count()
181 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); in input_mt_report_finger_count()
222 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234-p3768-0000+p3767-0000.dts53 linux,input-type = <EV_KEY>;
60 linux,input-type = <EV_KEY>;
69 linux,input-type = <EV_KEY>;

12345678910>>...16