Home
last modified time | relevance | path

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

12345678910>>...16

/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.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,
78 libevdev.EV_KEY.BTN_TOOL_PEN,
79 libevdev.EV_KEY.BTN_TOUCH,
88 libevdev.EV_KEY.BTN_STYLUS,
98 libevdev.EV_KEY.BTN_STYLUS,
108 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_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_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/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 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.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);
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
/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/drivers/input/keyboard/
H A Dgpio_keys.c70 * keys [ro] - bitmap of keys (EV_KEY) which can be
102 * @type: type of button (%EV_KEY, %EV_SW)
109 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()
117 * @type: type of button (%EV_KEY, %EV_SW)
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()
189 * @type: button type (%EV_KEY, %EV_SW)
237 * @type: button type (%EV_KEY, %EV_SW)
304 ATTR_SHOW_FN(keys, EV_KEY, false);
[all …]
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()
H A Dcros_ec_keyb.c70 * @ev_type: The type of the input event to generate (e.g., EV_KEY).
87 .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,
222 * @ev_type: The input event type (e.g., 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/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/hid/
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()
/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/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/
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()
/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()

12345678910>>...16