diff --git a/lua.cpp b/lua.cpp index 67aecb1..f5db39d 100644 --- a/lua.cpp +++ b/lua.cpp @@ -1010,12 +1010,12 @@ void push_lua_funcs() { lua_pushinteger(L, SDL_CONTROLLER_BUTTON_DPAD_DOWN); lua_setglobal(L, "BTN_DOWN"); lua_pushinteger(L, SDL_CONTROLLER_BUTTON_DPAD_LEFT); lua_setglobal(L, "BTN_LEFT"); lua_pushinteger(L, SDL_CONTROLLER_BUTTON_DPAD_RIGHT); lua_setglobal(L, "BTN_RIGHT"); - lua_pushinteger(L, SDL_CONTROLLER_BUTTON_MISC1); lua_setglobal(L, "BTN_MISC1"); - lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE1); lua_setglobal(L, "BTN_PADDLE1"); - lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE2); lua_setglobal(L, "BTN_PADDLE2"); - lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE3); lua_setglobal(L, "BTN_PADDLE3"); - lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE4); lua_setglobal(L, "BTN_PADDLE4"); - lua_pushinteger(L, SDL_CONTROLLER_BUTTON_TOUCHPAD); lua_setglobal(L, "BTN_TOUCHPAD"); + lua_pushinteger(L, 15); lua_setglobal(L, "BTN_MISC1"); + lua_pushinteger(L, 16); lua_setglobal(L, "BTN_PADDLE1"); + lua_pushinteger(L, 17); lua_setglobal(L, "BTN_PADDLE2"); + lua_pushinteger(L, 18); lua_setglobal(L, "BTN_PADDLE3"); + lua_pushinteger(L, 19); lua_setglobal(L, "BTN_PADDLE4"); + lua_pushinteger(L, 20); lua_setglobal(L, "BTN_TOUCHPAD"); lua_pushinteger(L, 0); lua_setglobal(L, "FILE_READ"); lua_pushinteger(L, 1); lua_setglobal(L, "FILE_WRITE");