mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
pointer: add support for axis relative direction
This commit is contained in:
parent
b80337a8f2
commit
88b16bac54
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue