Home
last modified time | relevance | path

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

12345678910>>...17

/openbmc/linux/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py172 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 1))
176 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 1
177 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 0
181 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 0))
185 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 0
196 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 1))
197 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_FN, 1))
201 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
205 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 0))
209 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.py35 libevdev.EV_KEY.BTN_START,
45 libevdev.EV_KEY.BTN_START,
53 libevdev.EV_KEY.KEY_A,
65 libevdev.EV_KEY.BTN_LEFT,
73 libevdev.EV_KEY.BTN_0,
76 libevdev.EV_KEY.BTN_TOOL_PEN,
77 libevdev.EV_KEY.BTN_TOUCH,
86 libevdev.EV_KEY.BTN_STYLUS,
96 libevdev.EV_KEY.BTN_STYLUS,
106 libevdev.EV_KEY.BTN_LEFT,
[all …]
H A Dtest_mouse.py548 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_RIGHT, 1)
552 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
555 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_RIGHT, 0)
559 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 0
562 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_MIDDLE, 1)
566 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 1
569 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_MIDDLE, 0)
573 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 0
576 expected_event = libevdev.InputEvent(libevdev.EV_KEY.BTN_LEFT, 1)
580 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
[all …]
H A Dtest_wacom_generic.py646 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
649 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 1),
658 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOUCH, 0),
671 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 0),
703 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
713 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS, 1),
721 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS, 0),
729 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS2, 1),
737 libevdev.InputEvent(libevdev.EV_KEY.BTN_STYLUS2, 0),
791 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
[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
H A Dtest_tablet.py27 PEN_IS_IN_RANGE = (False, libevdev.EV_KEY.BTN_TOOL_PEN)
28 PEN_IS_IN_CONTACT = (True, libevdev.EV_KEY.BTN_TOOL_PEN)
29 PEN_IS_IN_RANGE_WITH_ERASING_INTENT = (False, libevdev.EV_KEY.BTN_TOOL_RUBBER)
30 PEN_IS_ERASING = (True, libevdev.EV_KEY.BTN_TOOL_RUBBER)
38 touch = bool(evdev.value[libevdev.EV_KEY.BTN_TOUCH])
41 evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
42 and not evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
44 tool = libevdev.EV_KEY.BTN_TOOL_RUBBER
46 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
47 and not evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-steam.c509 input_set_capability(input, EV_KEY, BTN_TR2); in steam_input_register()
510 input_set_capability(input, EV_KEY, BTN_TL2); in steam_input_register()
511 input_set_capability(input, EV_KEY, BTN_TR); in steam_input_register()
512 input_set_capability(input, EV_KEY, BTN_TL); in steam_input_register()
513 input_set_capability(input, EV_KEY, BTN_Y); in steam_input_register()
514 input_set_capability(input, EV_KEY, BTN_B); in steam_input_register()
515 input_set_capability(input, EV_KEY, BTN_X); in steam_input_register()
516 input_set_capability(input, EV_KEY, BTN_A); in steam_input_register()
517 input_set_capability(input, EV_KEY, BTN_DPAD_UP); in steam_input_register()
518 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()
/openbmc/linux/drivers/input/joystick/
H A Dn64joy.c289 input_set_capability(dev, EV_KEY, BTN_DPAD_UP); in n64joy_probe()
290 input_set_capability(dev, EV_KEY, BTN_DPAD_DOWN); in n64joy_probe()
291 input_set_capability(dev, EV_KEY, BTN_DPAD_LEFT); in n64joy_probe()
292 input_set_capability(dev, EV_KEY, BTN_DPAD_RIGHT); 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()
[all …]
H A Dpsxpad-spi.c320 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 Dgamecon.c833 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in gc_setup_pad()
838 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); 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()
[all …]
/openbmc/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);
H A Dinput-programming.rst44 button_dev->evbit[0] = BIT_MASK(EV_KEY);
84 accepted by this input device. Our example device can only generate EV_KEY
88 set_bit(EV_KEY, button_dev->evbit);
216 The most simple event type is EV_KEY, which is used for keys and buttons.
226 In addition to EV_KEY, there are two more basic event types: EV_REL and
234 Having the device report EV_REL buttons is as simple as with EV_KEY; simply
/openbmc/linux/drivers/input/keyboard/
H A Dgpio_keys.c68 * keys [ro] - bitmap of keys (EV_KEY) which can be
100 * @type: type of button (%EV_KEY, %EV_SW)
107 BUG_ON(type != EV_SW && type != EV_KEY); in get_n_events_by_type()
109 return (type == EV_KEY) ? KEY_CNT : SW_CNT; in get_n_events_by_type()
115 * @type: type of button (%EV_KEY, %EV_SW)
123 BUG_ON(type != EV_SW && type != EV_KEY); in get_bm_events_by_type()
125 return (type == EV_KEY) ? dev->keybit : dev->swbit; in get_bm_events_by_type()
187 * @type: button type (%EV_KEY, %EV_SW)
235 * @type: button type (%EV_KEY, %EV_SW)
310 ATTR_SHOW_FN(keys, EV_KEY, false);
[all …]
H A Dcros_ec_keyb.c72 * @ev_type: The type of the input event to generate (e.g., EV_KEY).
89 .ev_type = EV_KEY,
94 .ev_type = EV_KEY,
99 .ev_type = EV_KEY,
104 .ev_type = EV_KEY,
109 .ev_type = EV_KEY,
114 .ev_type = EV_KEY,
224 * @ev_type: The input event type (e.g., EV_KEY).
292 ev_type = EV_KEY; in cros_ec_keyb_work()
517 if ((map->ev_type == EV_KEY && (buttons & BIT(map->bit))) || in cros_ec_keyb_register_bs()
/openbmc/linux/drivers/input/misc/
H A Dsoc_button_array.c281 info->event_type = EV_KEY; in soc_button_parse_btn_desc()
498 { "power", 0, EV_KEY, KEY_POWER, false, true, true },
499 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, true },
500 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true },
501 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
502 { "rotation_lock", 4, EV_KEY, KEY_ROTATE_LOCK_TOGGLE, false, false, true },
529 { "power", 0, EV_KEY, KEY_POWER, false, true, true },
530 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, false },
531 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true },
532 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
[all …]
/openbmc/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) },
/openbmc/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()
/openbmc/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234-p3768-0000+p3767-0000.dts63 linux,input-type = <EV_KEY>;
70 linux,input-type = <EV_KEY>;
79 linux,input-type = <EV_KEY>;
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/input/
H A Dinput-mt.c63 __set_bit(EV_KEY, dev->evbit); in input_mt_init_slots()
180 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1); in input_mt_report_finger_count()
181 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); in input_mt_report_finger_count()
182 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); in input_mt_report_finger_count()
183 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); in input_mt_report_finger_count()
184 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); in input_mt_report_finger_count()
225 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
/openbmc/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()

12345678910>>...17