mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-30 19:08:51 -05:00
Wayland: Assert that we only get a known axis
This commit is contained in:
parent
25cf67667f
commit
cc87d5ab10
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "internal.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <linux/input.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -152,6 +153,7 @@ static void pointerHandleAxis(void* data,
|
|||
y = wl_fixed_to_double(value) * scrollFactor;
|
||||
break;
|
||||
default:
|
||||
assert(GLFW_FALSE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user