Bläddra i källkod

Wayland: Assert that we only get a known axis

Emmanuel Gil Peyrot 7 år sedan
förälder
incheckning
cc87d5ab10
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      src/wl_init.c

+ 2 - 0
src/wl_init.c

@@ -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;
     }