mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-12 13:29:45 -05:00
refactor input time_sec to time_msec
This commit is contained in:
parent
57efc3417f
commit
a224e74fad
14 changed files with 53 additions and 54 deletions
|
|
@ -63,7 +63,7 @@ enum wlr_key_state {
|
|||
};
|
||||
|
||||
struct wlr_event_keyboard_key {
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
uint32_t keycode;
|
||||
bool update_state;
|
||||
|
|
|
|||
|
|
@ -22,14 +22,14 @@ struct wlr_pointer {
|
|||
|
||||
struct wlr_event_pointer_motion {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
double delta_x, delta_y;
|
||||
};
|
||||
|
||||
struct wlr_event_pointer_motion_absolute {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
double x_mm, y_mm;
|
||||
double width_mm, height_mm;
|
||||
|
|
@ -37,7 +37,7 @@ struct wlr_event_pointer_motion_absolute {
|
|||
|
||||
struct wlr_event_pointer_button {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
uint32_t button;
|
||||
enum wlr_button_state state;
|
||||
|
|
@ -57,7 +57,7 @@ enum wlr_axis_orientation {
|
|||
|
||||
struct wlr_event_pointer_axis {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
enum wlr_axis_source source;
|
||||
enum wlr_axis_orientation orientation;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ struct wlr_tablet_pad {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_pad_button {
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
uint32_t button;
|
||||
enum wlr_button_state state;
|
||||
|
|
@ -38,7 +38,7 @@ enum wlr_tablet_pad_ring_source {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_pad_ring {
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
enum wlr_tablet_pad_ring_source source;
|
||||
uint32_t ring;
|
||||
|
|
@ -51,7 +51,7 @@ enum wlr_tablet_pad_strip_source {
|
|||
};
|
||||
|
||||
struct wlr_event_tablet_pad_strip {
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
enum wlr_tablet_pad_strip_source source;
|
||||
uint32_t strip;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ enum wlr_tablet_tool_axes {
|
|||
|
||||
struct wlr_event_tablet_tool_axis {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
uint32_t updated_axes;
|
||||
double x_mm, y_mm;
|
||||
|
|
@ -54,7 +54,7 @@ enum wlr_tablet_tool_proximity_state {
|
|||
|
||||
struct wlr_event_tablet_tool_proximity {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
double x_mm, y_mm;
|
||||
double width_mm, height_mm;
|
||||
|
|
@ -68,7 +68,7 @@ enum wlr_tablet_tool_tip_state {
|
|||
|
||||
struct wlr_event_tablet_tool_tip {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
double x_mm, y_mm;
|
||||
double width_mm, height_mm;
|
||||
|
|
@ -77,7 +77,7 @@ struct wlr_event_tablet_tool_tip {
|
|||
|
||||
struct wlr_event_tablet_tool_button {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
uint32_t button;
|
||||
enum wlr_button_state state;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ struct wlr_touch {
|
|||
|
||||
struct wlr_event_touch_down {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
int32_t slot;
|
||||
double x_mm, y_mm;
|
||||
|
|
@ -30,14 +30,14 @@ struct wlr_event_touch_down {
|
|||
|
||||
struct wlr_event_touch_up {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
int32_t slot;
|
||||
};
|
||||
|
||||
struct wlr_event_touch_motion {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
int32_t slot;
|
||||
double x_mm, y_mm;
|
||||
|
|
@ -46,7 +46,7 @@ struct wlr_event_touch_motion {
|
|||
|
||||
struct wlr_event_touch_cancel {
|
||||
struct wlr_input_device *device;
|
||||
uint32_t time_sec;
|
||||
uint32_t time_msec;
|
||||
uint64_t time_usec;
|
||||
int32_t slot;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue