summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-09-05 15:00:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-09-07 11:17:03 +1000
commit1ce99fd69858bca72e78689ef28a57a66672d802 (patch)
treea244d2ccb21f6ea26f2ca9238bc72a01868e0089
parent31fdb7e6b0741aa246beceda1de196eec2e0686b (diff)
evdev: split resetting to a neutral state out
No functional changes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
-rw-r--r--src/evdev.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 7c668b11..3b48c3e5 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1160,10 +1160,9 @@ release_pressed_keys(struct fallback_dispatch *dispatch,
}
static void
-fallback_suspend(struct evdev_dispatch *evdev_dispatch,
- struct evdev_device *device)
+fallback_return_to_neutral_state(struct fallback_dispatch *dispatch,
+ struct evdev_device *device)
{
- struct fallback_dispatch *dispatch = (struct fallback_dispatch*)evdev_dispatch;
struct libinput *libinput = evdev_libinput_context(device);
uint64_t time;
@@ -1176,6 +1175,15 @@ fallback_suspend(struct evdev_dispatch *evdev_dispatch,
}
static void
+fallback_suspend(struct evdev_dispatch *evdev_dispatch,
+ struct evdev_device *device)
+{
+ struct fallback_dispatch *dispatch = (struct fallback_dispatch*)evdev_dispatch;
+
+ fallback_return_to_neutral_state(dispatch, device);
+}
+
+static void
fallback_destroy(struct evdev_dispatch *evdev_dispatch)
{
struct fallback_dispatch *dispatch = (struct fallback_dispatch*)evdev_dispatch;