aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/tablet_pad.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-30 15:50:31 -0400
committerGitHub <noreply@github.com>2017-10-30 15:50:31 -0400
commitebca06bfe46d18763c79f99382ce7c9717b538a6 (patch)
tree171dfa1636c409cc5b4fbf8f5ddadea035e99a3d /backend/libinput/tablet_pad.c
parent2e7cfd21e4c884910a703fab44009ba18c20f002 (diff)
parent875a5b446fcf04314ee102624bda7ae18939837e (diff)
Merge pull request #358 from acrisci/refactor/sec-to-msec
refactor input time_sec to time_msec
Diffstat (limited to 'backend/libinput/tablet_pad.c')
-rw-r--r--backend/libinput/tablet_pad.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c
index efad1068..7dac3b7c 100644
--- a/backend/libinput/tablet_pad.c
+++ b/backend/libinput/tablet_pad.c
@@ -30,8 +30,8 @@ void handle_tablet_pad_button(struct libinput_event *event,
struct libinput_event_tablet_pad *pevent =
libinput_event_get_tablet_pad_event(event);
struct wlr_event_tablet_pad_button wlr_event = { 0 };
- wlr_event.time_sec = libinput_event_tablet_pad_get_time(pevent);
- wlr_event.time_usec = libinput_event_tablet_pad_get_time_usec(pevent);
+ wlr_event.time_msec =
+ usec_to_msec(libinput_event_tablet_pad_get_time_usec(pevent));
wlr_event.button = libinput_event_tablet_pad_get_button_number(pevent);
switch (libinput_event_tablet_pad_get_button_state(pevent)) {
case LIBINPUT_BUTTON_STATE_PRESSED:
@@ -55,8 +55,8 @@ void handle_tablet_pad_ring(struct libinput_event *event,
struct libinput_event_tablet_pad *pevent =
libinput_event_get_tablet_pad_event(event);
struct wlr_event_tablet_pad_ring wlr_event = { 0 };
- wlr_event.time_sec = libinput_event_tablet_pad_get_time(pevent);
- wlr_event.time_usec = libinput_event_tablet_pad_get_time_usec(pevent);
+ wlr_event.time_msec =
+ usec_to_msec(libinput_event_tablet_pad_get_time_usec(pevent));
wlr_event.ring = libinput_event_tablet_pad_get_ring_number(pevent);
wlr_event.position = libinput_event_tablet_pad_get_ring_position(pevent);
switch (libinput_event_tablet_pad_get_ring_source(pevent)) {
@@ -81,8 +81,8 @@ void handle_tablet_pad_strip(struct libinput_event *event,
struct libinput_event_tablet_pad *pevent =
libinput_event_get_tablet_pad_event(event);
struct wlr_event_tablet_pad_strip wlr_event = { 0 };
- wlr_event.time_sec = libinput_event_tablet_pad_get_time(pevent);
- wlr_event.time_usec = libinput_event_tablet_pad_get_time_usec(pevent);
+ wlr_event.time_msec =
+ usec_to_msec(libinput_event_tablet_pad_get_time_usec(pevent));
wlr_event.strip = libinput_event_tablet_pad_get_strip_number(pevent);
wlr_event.position = libinput_event_tablet_pad_get_strip_position(pevent);
switch (libinput_event_tablet_pad_get_strip_source(pevent)) {