2019-06-19 10:04:47 +02:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
2020-03-08 15:28:47 +01:00
|
|
|
|
#include <stdint.h>
|
2019-06-19 10:04:47 +02:00
|
|
|
|
#include <wayland-client.h>
|
|
|
|
|
|
|
2019-10-27 18:44:58 +01:00
|
|
|
|
#include "wayland.h"
|
2019-06-19 10:04:47 +02:00
|
|
|
|
|
2021-08-05 18:34:09 +02:00
|
|
|
|
/*
|
|
|
|
|
|
* Custom defines for mouse wheel left/right buttons.
|
|
|
|
|
|
*
|
|
|
|
|
|
* Libinput does not define these. On Wayland, all scroll events (both
|
|
|
|
|
|
* vertical and horizontal) are reported not as buttons, as ‘axis’
|
|
|
|
|
|
* events.
|
|
|
|
|
|
*
|
|
|
|
|
|
* Libinput _does_ define BTN_BACK and BTN_FORWARD, which is
|
|
|
|
|
|
* what we use for vertical scroll events. But for horizontal scroll
|
|
|
|
|
|
* events, there aren’t any pre-defined mouse buttons.
|
|
|
|
|
|
*
|
|
|
|
|
|
* Mouse buttons are in the range 0x110 - 0x11f, with joystick defines
|
|
|
|
|
|
* starting at 0x120.
|
|
|
|
|
|
*/
|
|
|
|
|
|
#define BTN_WHEEL_LEFT 0x11e
|
|
|
|
|
|
#define BTN_WHEEL_RIGHT 0x11f
|
|
|
|
|
|
|
2019-06-19 10:04:47 +02:00
|
|
|
|
extern const struct wl_keyboard_listener keyboard_listener;
|
2019-07-05 10:44:57 +02:00
|
|
|
|
extern const struct wl_pointer_listener pointer_listener;
|
2019-06-19 10:04:47 +02:00
|
|
|
|
|
2020-07-08 16:45:26 +02:00
|
|
|
|
void input_repeat(struct seat *seat, uint32_t key);
|