summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index a1613b49..b8191cce 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -115,6 +115,9 @@ struct evdev_device {
uint32_t direction;
double buildup_vertical;
double buildup_horizontal;
+
+ struct libinput_device_config_natural_scroll config_natural;
+ bool natural_scrolling_enabled;
} scroll;
enum evdev_event_type pending_event;
@@ -285,6 +288,9 @@ evdev_pointer_notify_button(struct evdev_device *device,
enum libinput_button_state state);
void
+evdev_init_natural_scroll(struct evdev_device *device);
+
+void
evdev_post_scroll(struct evdev_device *device,
uint64_t time,
double dx,