wayland: Replace magic constant with define
parent
5008521538
commit
c10d93d3a0
|
@ -823,7 +823,7 @@ static void pointer_handle_axis(void *data, struct wl_pointer *pointer,
|
||||||
{
|
{
|
||||||
struct SDL_WaylandInput *input = data;
|
struct SDL_WaylandInput *input = data;
|
||||||
|
|
||||||
if (wl_seat_get_version(input->seat) >= 5) {
|
if (wl_seat_get_version(input->seat) >= WL_POINTER_FRAME_SINCE_VERSION) {
|
||||||
input->pointer_curr_axis_info.timestamp_ns = Wayland_GetPointerTimestamp(input, time);
|
input->pointer_curr_axis_info.timestamp_ns = Wayland_GetPointerTimestamp(input, time);
|
||||||
pointer_handle_axis_common(input, AXIS_EVENT_CONTINUOUS, axis, value);
|
pointer_handle_axis_common(input, AXIS_EVENT_CONTINUOUS, axis, value);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue