diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-30 06:40:06 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-30 06:40:06 -0400 |
commit | a224e74fadd6393e25ec7392115892aec87dc11a (patch) | |
tree | ea0106122b9bb2e0369c3a6499e11477e806b454 /backend/libinput/tablet_pad.c | |
parent | 57efc3417f2131d643f8677093ec9b3e8301016e (diff) |
refactor input time_sec to time_msec
Diffstat (limited to 'backend/libinput/tablet_pad.c')
-rw-r--r-- | backend/libinput/tablet_pad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c index efad1068..62d9d2ec 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 = (uint32_t)(wlr_event.time_usec / 1000); 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 = (uint32_t)(wlr_event.time_usec / 1000); 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 = (uint32_t)(wlr_event.time_usec / 1000); 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)) { |