aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-05-04 15:46:24 -0400
committerSimon Ser <contact@emersion.fr>2020-05-04 21:52:33 +0200
commit16af1972d62e9fcdf6e3b6cb445b29762c2a1878 (patch)
tree83dafffe4070997b2604c09fb61009535d897f9d
parent46c83cbf3daf6c38c70d0dcb5492e164b6c8ab29 (diff)
wlr/types: use bitshifts for tablet axes enum
-rw-r--r--include/wlr/types/wlr_tablet_tool.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_tablet_tool.h b/include/wlr/types/wlr_tablet_tool.h
index 805727d4..4dbac4d0 100644
--- a/include/wlr/types/wlr_tablet_tool.h
+++ b/include/wlr/types/wlr_tablet_tool.h
@@ -77,15 +77,15 @@ struct wlr_tablet {
};
enum wlr_tablet_tool_axes {
- WLR_TABLET_TOOL_AXIS_X = 1,
- WLR_TABLET_TOOL_AXIS_Y = 2,
- WLR_TABLET_TOOL_AXIS_DISTANCE = 4,
- WLR_TABLET_TOOL_AXIS_PRESSURE = 8,
- WLR_TABLET_TOOL_AXIS_TILT_X = 16,
- WLR_TABLET_TOOL_AXIS_TILT_Y = 32,
- WLR_TABLET_TOOL_AXIS_ROTATION = 64,
- WLR_TABLET_TOOL_AXIS_SLIDER = 128,
- WLR_TABLET_TOOL_AXIS_WHEEL = 256,
+ WLR_TABLET_TOOL_AXIS_X = 1 << 0,
+ WLR_TABLET_TOOL_AXIS_Y = 1 << 1,
+ WLR_TABLET_TOOL_AXIS_DISTANCE = 1 << 2,
+ WLR_TABLET_TOOL_AXIS_PRESSURE = 1 << 3,
+ WLR_TABLET_TOOL_AXIS_TILT_X = 1 << 4,
+ WLR_TABLET_TOOL_AXIS_TILT_Y = 1 << 5,
+ WLR_TABLET_TOOL_AXIS_ROTATION = 1 << 6,
+ WLR_TABLET_TOOL_AXIS_SLIDER = 1 << 7,
+ WLR_TABLET_TOOL_AXIS_WHEEL = 1 << 8,
};
struct wlr_event_tablet_tool_axis {