1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Fix ControllerButton ordering, which broke isDown

The first item in ControllerButtons was NULL, which meant luaL_checkoption could not work.
This commit is contained in:
mcc 2018-08-20 13:29:45 -04:00
parent 1f00948da0
commit f69f6169fe

View file

@ -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 {