refactor input time_sec to time_msec

This commit is contained in:
Tony Crisci 2017-10-30 06:40:06 -04:00
parent 57efc3417f
commit a224e74fad
14 changed files with 53 additions and 54 deletions

View file

@ -54,8 +54,8 @@ void handle_keyboard_key(struct libinput_event *event,
struct libinput_event_keyboard *kbevent =
libinput_event_get_keyboard_event(event);
struct wlr_event_keyboard_key wlr_event = { 0 };
wlr_event.time_sec = libinput_event_keyboard_get_time(kbevent);
wlr_event.time_usec = libinput_event_keyboard_get_time_usec(kbevent);
wlr_event.time_msec = (uint32_t)(wlr_event.time_usec / 1000);
wlr_event.keycode = libinput_event_keyboard_get_key(kbevent);
enum libinput_key_state state =
libinput_event_keyboard_get_key_state(kbevent);