mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 13:33:34 +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:
parent
1f00948da0
commit
f69f6169fe
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue