Wayland: Assert that we only get a known axis

master
Emmanuel Gil Peyrot ago%!(EXTRA string=8 years) committed by Camilla Löwy
parent 25cf67667f
commit cc87d5ab10
  1. 2
      src/wl_init.c

@ -26,6 +26,7 @@
#include "internal.h" #include "internal.h"
#include <assert.h>
#include <linux/input.h> #include <linux/input.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -152,6 +153,7 @@ static void pointerHandleAxis(void* data,
y = wl_fixed_to_double(value) * scrollFactor; y = wl_fixed_to_double(value) * scrollFactor;
break; break;
default: default:
assert(GLFW_FALSE);
break; break;
} }

Loading…
Cancel
Save