mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-28 22:30:07 +01:00
tools: use the linux event codes now that we're including the header
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3abf13742a
commit
2ec3328447
1 changed files with 4 additions and 4 deletions
|
|
@ -328,8 +328,8 @@ int main(int argc, char **argv)
|
|||
ei_device_pointer_motion(ptr, -1, 1);
|
||||
/* BTN_LEFT */
|
||||
colorprint("sending button event\n");
|
||||
ei_device_pointer_button(ptr, 0x110, true);
|
||||
ei_device_pointer_button(ptr, 0x110, false);
|
||||
ei_device_pointer_button(ptr, BTN_LEFT, true);
|
||||
ei_device_pointer_button(ptr, BTN_LEFT, false);
|
||||
colorprint("sending scroll event\n");
|
||||
ei_device_pointer_scroll(ptr, 1, 1);
|
||||
ei_device_pointer_scroll_discrete(ptr, 1, 1);
|
||||
|
|
@ -338,8 +338,8 @@ int main(int argc, char **argv)
|
|||
if (have_kbd) {
|
||||
static int key = 0;
|
||||
colorprint("sending key event\n");
|
||||
ei_device_keyboard_key(kbd, 16 + key, true); /* KEY_Q */
|
||||
ei_device_keyboard_key(kbd, 16 + key, false); /* KEY_Q */
|
||||
ei_device_keyboard_key(kbd, KEY_Q + key, true); /* KEY_Q */
|
||||
ei_device_keyboard_key(kbd, KEY_Q + key, false); /* KEY_Q */
|
||||
key = (key + 1) % 6;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue