aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-11 13:28:17 +0100
committerKirill Primak <vyivel@eclair.cafe>2024-01-23 08:37:29 +0000
commit88b16bac54d9995196ace3823c4b81ffc84d7d9e (patch)
tree769c6cdd097a19886971ac7930ff38bef4fbb457 /include
parentb80337a8f2bb5d032f533ed5e0feb6292670528f (diff)
pointer: add support for axis relative direction
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_pointer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_pointer.h b/include/wlr/types/wlr_pointer.h
index 16aed1dc..e4740550 100644
--- a/include/wlr/types/wlr_pointer.h
+++ b/include/wlr/types/wlr_pointer.h
@@ -78,6 +78,11 @@ enum wlr_axis_orientation {
WLR_AXIS_ORIENTATION_HORIZONTAL,
};
+enum wlr_axis_relative_direction {
+ WLR_AXIS_RELATIVE_DIRECTION_IDENTICAL,
+ WLR_AXIS_RELATIVE_DIRECTION_INVERTED,
+};
+
#define WLR_POINTER_AXIS_DISCRETE_STEP 120
struct wlr_pointer_axis_event {
@@ -85,6 +90,7 @@ struct wlr_pointer_axis_event {
uint32_t time_msec;
enum wlr_axis_source source;
enum wlr_axis_orientation orientation;
+ enum wlr_axis_relative_direction relative_direction;
double delta;
int32_t delta_discrete;
};