Home
last modified time | relevance | path

Searched full:ev_key (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/linux/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py173 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 1))
177 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 1
178 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 0
182 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 0))
186 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 0
197 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 1))
198 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_FN, 1))
202 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
206 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 0))
210 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0
[all …]
H A Dtest_keyboard.py271 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 1))
275 assert evdev.value[libevdev.EV_KEY.KEY_A] == 1
279 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 0))
283 assert evdev.value[libevdev.EV_KEY.KEY_A] == 0
292 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 1))
293 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_Q, 1))
297 assert evdev.value[libevdev.EV_KEY.KEY_A] == 1
301 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 0))
302 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_Q, 0))
306 assert evdev.value[libevdev.EV_KEY.KEY_A] == 0
[all …]
H A Dbase.py38 libevdev.EV_KEY.BTN_START,
48 libevdev.EV_KEY.BTN_START,
56 libevdev.EV_KEY.KEY_A,
68 libevdev.EV_KEY.BTN_LEFT,
76 libevdev.EV_KEY.BTN_0,
79 libevdev.EV_KEY.BTN_TOOL_PEN,
80 libevdev.EV_KEY.BTN_TOUCH,
89 libevdev.EV_KEY.BTN_STYLUS,
99 libevdev.EV_KEY.BTN_STYLUS,
109 libevdev.EV_KEY.BTN_LEFT,
[all …]
H A Dtest_mouse.py610 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_RIGHT, 1)
614 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
617 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_RIGHT, 0)
621 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 0
624 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_MIDDLE, 1)
628 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 1
631 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_MIDDLE, 0)
635 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 0
638 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_LEFT, 1)
642 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
[all …]
H A Dtest_sony.py149 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events
158 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 0) in events
177 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events
178 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
187 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH) not in events
188 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1
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),
704 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
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),
792 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
[all …]
/linux/drivers/hid/
H A Dhid-steam.c739 input_set_capability(input, EV_KEY, BTN_TR2); in steam_input_register()
740 input_set_capability(input, EV_KEY, BTN_TL2); in steam_input_register()
741 input_set_capability(input, EV_KEY, BTN_TR); in steam_input_register()
742 input_set_capability(input, EV_KEY, BTN_TL); in steam_input_register()
743 input_set_capability(input, EV_KEY, BTN_Y); in steam_input_register()
744 input_set_capability(input, EV_KEY, BTN_B); in steam_input_register()
745 input_set_capability(input, EV_KEY, BTN_X); in steam_input_register()
746 input_set_capability(input, EV_KEY, BTN_A); in steam_input_register()
747 input_set_capability(input, EV_KEY, BTN_DPAD_UP); in steam_input_register()
748 input_set_capability(input, EV_KEY, BTN_DPAD_RIGHT); 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/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h700-anbernic-rg35xx-2024.dts40 linux,input-type = <EV_KEY>;
47 linux,input-type = <EV_KEY>;
54 linux,input-type = <EV_KEY>;
61 linux,input-type = <EV_KEY>;
68 linux,input-type = <EV_KEY>;
75 linux,input-type = <EV_KEY>;
82 linux,input-type = <EV_KEY>;
89 linux,input-type = <EV_KEY>;
96 linux,input-type = <EV_KEY>;
103 linux,input-type = <EV_KEY>;
[all …]
/linux/drivers/input/joystick/
H A Dn64joy.c286 input_set_capability(dev, EV_KEY, BTN_DPAD_UP); in n64joy_probe()
287 input_set_capability(dev, EV_KEY, BTN_DPAD_DOWN); in n64joy_probe()
288 input_set_capability(dev, EV_KEY, BTN_DPAD_LEFT); in n64joy_probe()
289 input_set_capability(dev, EV_KEY, BTN_DPAD_RIGHT); in n64joy_probe()
291 input_set_capability(dev, EV_KEY, BTN_LEFT); in n64joy_probe()
292 input_set_capability(dev, EV_KEY, BTN_RIGHT); in n64joy_probe()
293 input_set_capability(dev, EV_KEY, BTN_FORWARD); in n64joy_probe()
294 input_set_capability(dev, EV_KEY, BTN_BACK); in n64joy_probe()
296 input_set_capability(dev, EV_KEY, BTN_START); in n64joy_probe()
297 input_set_capability(dev, EV_KEY, BTN_Z); in n64joy_probe()
[all …]
H A Dgamecon.c831 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in gc_setup_pad()
836 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in gc_setup_pad()
844 input_set_capability(input_dev, EV_KEY, gc_n64_btn[i]); in gc_setup_pad()
861 input_set_capability(input_dev, EV_KEY, BTN_LEFT); in gc_setup_pad()
862 input_set_capability(input_dev, EV_KEY, BTN_RIGHT); in gc_setup_pad()
869 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad()
874 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad()
878 input_set_capability(input_dev, EV_KEY, BTN_THUMB); in gc_setup_pad()
882 input_set_capability(input_dev, EV_KEY, BTN_TRIGGER); in gc_setup_pad()
890 input_set_capability(input_dev, EV_KEY, gc_psx_btn[i]); in gc_setup_pad()
[all …]
/linux/Documentation/input/
H A Duinput.rst73 ioctl(fd, UI_SET_EVBIT, EV_KEY);
95 emit(fd, EV_KEY, KEY_SPACE, 1);
97 emit(fd, EV_KEY, KEY_SPACE, 0);
132 ioctl(fd, UI_SET_EVBIT, EV_KEY);
210 ioctl(fd, UI_SET_EVBIT, EV_KEY);
229 emit(fd, EV_KEY, KEY_SPACE, 1);
231 emit(fd, EV_KEY, KEY_SPACE, 0);
/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 },
500 { "rotation_lock", 4, EV_KEY, KEY_ROTATE_LOCK_TOGGLE, false, 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 },
[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/media/usb/dvb-usb/
H A Ddvb-usb-remote.c135 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
137 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control()
142 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
144 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control()
157 input_event(d->rc_input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control()
167 input_event(d->rc_input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
177 input_event(d->rc_input_dev, EV_KEY, d->last_event, 2); in legacy_dvb_usb_read_remote_control()
199 input_dev->evbit[0] = BIT_MASK(EV_KEY); in legacy_dvb_usb_remote_init()
/linux/drivers/input/keyboard/
H A Dimx-sm-bbm-key.c50 input_event(input, EV_KEY, bbnsm->keycode, state); in scmi_imx_bbm_pwrkey_check_for_events()
53 pr_debug("EV_KEY: %x\n", bbnsm->keycode); in scmi_imx_bbm_pwrkey_check_for_events()
73 input_event(input, EV_KEY, bbnsm->keycode, 1); in scmi_imx_bbm_pwrkey_event()
131 input_set_capability(input, EV_KEY, bbnsm->keycode); in scmi_imx_bbm_pwrkey_init()
/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()
H A Dgpio_mouse.c125 input_set_capability(input, EV_KEY, BTN_LEFT); in gpio_mouse_probe()
127 input_set_capability(input, EV_KEY, BTN_MIDDLE); in gpio_mouse_probe()
129 input_set_capability(input, EV_KEY, BTN_RIGHT); in gpio_mouse_probe()
/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/include/linux/input/
H A Dadxl34x.h288 u32 ev_code_tap[3]; /* EV_KEY {X-Axis, Y-Axis, Z-Axis} */
296 u32 ev_code_ff; /* EV_KEY */
297 u32 ev_code_act_inactivity; /* EV_KEY */
354 u32 ev_codes_orient_2d[4]; /* EV_KEY {+X, -X, +Y, -Y} */
355 u32 ev_codes_orient_3d[6]; /* EV_KEY {+Z, +Y, +X, -X, -Y, -Z} */
/linux/drivers/input/tests/
H A Dinput_test.c28 input_set_capability(input_dev, EV_KEY, BTN_LEFT); in input_test_init()
29 input_set_capability(input_dev, EV_KEY, BTN_RIGHT); in input_test_init()
126 __set_bit(EV_KEY, id.evbit); in input_test_match_device_id()
/linux/drivers/input/
H A Djoydev.c121 case EV_KEY: in joydev_event()
781 .evbit = { BIT_MASK(EV_KEY) },
788 .evbit = { BIT_MASK(EV_KEY) },
842 * EV_ABS, EV_KEY and EV_SYN in joydev_dev_is_absolute_mouse()
844 * EV_ABS, EV_KEY, EV_SYN and EV_MSC in joydev_dev_is_absolute_mouse()
846 * EV_ABS, EV_KEY, EV_SYN, EV_MSC and EV_REL. in joydev_dev_is_absolute_mouse()
855 __set_bit(EV_KEY, jd_scratch); in joydev_dev_is_absolute_mouse()
1055 .evbit = { BIT_MASK(EV_KEY) },
1061 .evbit = { BIT_MASK(EV_KEY) },
1067 .evbit = { BIT_MASK(EV_KEY) },
/linux/drivers/input/touchscreen/
H A Dsurface3_spi.c298 input_set_capability(input, EV_KEY, BTN_TOUCH); in surface3_spi_create_pen_input()
299 input_set_capability(input, EV_KEY, BTN_STYLUS); in surface3_spi_create_pen_input()
300 input_set_capability(input, EV_KEY, BTN_TOOL_PEN); in surface3_spi_create_pen_input()
301 input_set_capability(input, EV_KEY, BTN_TOOL_RUBBER); in surface3_spi_create_pen_input()

12345678910>>...14