From f69f6169fefcf3491471a8f665e76068b981b5ba Mon Sep 17 00:00:00 2001 From: mcc Date: Mon, 20 Aug 2018 13:29:45 -0400 Subject: [PATCH] Fix ControllerButton ordering, which broke isDown The first item in ControllerButtons was NULL, which meant luaL_checkoption could not work. --- src/headset/headset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/headset/headset.h b/src/headset/headset.h index 74161665..f0de1470 100644 --- a/src/headset/headset.h +++ b/src/headset/headset.h @@ -37,7 +37,6 @@ typedef enum { } ControllerAxis; typedef enum { - CONTROLLER_BUTTON_UNKNOWN, CONTROLLER_BUTTON_SYSTEM, CONTROLLER_BUTTON_MENU, CONTROLLER_BUTTON_TRIGGER, @@ -47,7 +46,8 @@ typedef enum { CONTROLLER_BUTTON_A, CONTROLLER_BUTTON_B, CONTROLLER_BUTTON_X, - CONTROLLER_BUTTON_Y + CONTROLLER_BUTTON_Y, + CONTROLLER_BUTTON_UNKNOWN // Must be last item } ControllerButton; typedef enum {