This commit is contained in:
Friz64 2025-01-19 07:29:38 +00:00 committed by GitHub
commit cafd916b3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 1 deletions

View file

@ -135,7 +135,7 @@ static void registryHandleGlobal(void* userData,
{
_glfw.wl.seat =
wl_registry_bind(registry, name, &wl_seat_interface,
_glfw_min(4, version));
_glfw_min(5, version));
_glfwAddSeatListenerWayland(_glfw.wl.seat);
if (wl_seat_get_version(_glfw.wl.seat) >=

View file

@ -1622,6 +1622,31 @@ static void pointerHandleAxis(void* userData,
_glfwInputScroll(window, 0.0, -wl_fixed_to_double(value) / 10.0);
}
static void pointerHandleFrame(void* userData,
struct wl_pointer* pointer)
{
}
static void pointerHandleAxisSource(void* userData,
struct wl_pointer* pointer,
uint32_t axis_source)
{
}
static void pointerHandleAxisStop(void* userData,
struct wl_pointer* pointer,
uint32_t time,
uint32_t axis)
{
}
static void pointerHandleAxisDiscrete(void* userData,
struct wl_pointer* pointer,
uint32_t axis,
int32_t discrete)
{
}
static const struct wl_pointer_listener pointerListener =
{
pointerHandleEnter,
@ -1629,6 +1654,10 @@ static const struct wl_pointer_listener pointerListener =
pointerHandleMotion,
pointerHandleButton,
pointerHandleAxis,
pointerHandleFrame,
pointerHandleAxisSource,
pointerHandleAxisStop,
pointerHandleAxisDiscrete,
};
static void keyboardHandleKeymap(void* userData,