| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_apple_keyboard.py | 173 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 D | test_keyboard.py | 271 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 D | base.py | 38 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 D | test_mouse.py | 610 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 D | test_multitouch.py | 674 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events 685 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 0) in events 713 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events 714 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1 723 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH) not in events 724 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1 879 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events 880 assert evdev.value[libevdev.EV_KEY.BTN_TOUCH] == 1 919 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events 948 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1) in events [all …]
|
| H A D | test_wacom_generic.py | 635 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1), 638 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1), 647 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 0), 660 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 0), 701 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1), 711 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS, 1), 719 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS, 0), 727 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS2, 1), 735 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS2, 0), 789 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1), [all …]
|
| H A D | test_tablet.py | 30 PEN = libevdev.EV_KEY.BTN_TOOL_PEN 31 RUBBER = libevdev.EV_KEY.BTN_TOOL_RUBBER 37 PRIMARY_PRESSED = libevdev.EV_KEY.BTN_STYLUS 38 SECONDARY_PRESSED = libevdev.EV_KEY.BTN_STYLUS2 39 THIRD_PRESSED = libevdev.EV_KEY.BTN_STYLUS3 68 touch = BtnTouch(evdev.value[libevdev.EV_KEY.BTN_TOUCH]) 72 evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER] 73 and not evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN] 75 tool = ToolType(libevdev.EV_KEY.BTN_TOOL_RUBBER) 77 evdev.value[libevdev.EV_KEY [all...] |
| H A D | test_sony.py | 149 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 D | test_ite_keyboard.py | 157 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_RFKILL, 1)) 163 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_RFKILL, 0))
|
| /linux/drivers/input/joystick/ |
| H A D | n64joy.c | 286 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 D | psxpad-spi.c | 320 input_set_capability(idev, EV_KEY, BTN_DPAD_UP); in psxpad_spi_probe() 321 input_set_capability(idev, EV_KEY, BTN_DPAD_DOWN); in psxpad_spi_probe() 322 input_set_capability(idev, EV_KEY, BTN_DPAD_LEFT); in psxpad_spi_probe() 323 input_set_capability(idev, EV_KEY, BTN_DPAD_RIGHT); in psxpad_spi_probe() 324 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() [all …]
|
| H A D | gamecon.c | 831 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/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-2024.dts | 40 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/net/rfkill/ |
| H A D | input.c | 196 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/hid/ |
| H A D | hid-letsketch.c | 116 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 D | hid-zydacron.c | 43 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/platform/surface/ |
| H A D | surfacepro3_button.c | 221 input_set_capability(input, EV_KEY, KEY_POWER); in surface_button_probe() 222 input_set_capability(input, EV_KEY, KEY_LEFTMETA); in surface_button_probe() 223 input_set_capability(input, EV_KEY, KEY_VOLUMEUP); in surface_button_probe() 224 input_set_capability(input, EV_KEY, KEY_VOLUMEDOWN); in surface_button_probe()
|
| /linux/drivers/input/mouse/ |
| H A D | logips2pp.c | 277 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 D | gpio_mouse.c | 125 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/input/ |
| H A D | input-mt.c | 63 __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() 230 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
|
| /linux/Documentation/input/ |
| H A D | uinput.rst | 73 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/macintosh/ |
| H A D | mac_hid.c | 51 mac_hid_emumouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in mac_hid_create_emumouse() 78 if (type != EV_KEY) in mac_hid_emumouse_filter() 148 .evbit = { BIT_MASK(EV_KEY) },
|
| /linux/drivers/input/touchscreen/ |
| H A D | max11801_ts.c | 136 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1); in max11801_ts_interrupt() 141 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 0); in max11801_ts_interrupt() 192 __set_bit(EV_KEY, input_dev->evbit); in max11801_ts_probe()
|
| /linux/drivers/input/tests/ |
| H A D | input_test.c | 28 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/keyboard/ |
| H A D | imx-sm-bbm-key.c | 50 input_event(input, EV_KEY, bbnsm->keycode, state); 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()
|