- Fixed problem with SDL constants on linux (outdated SDL version, anyways)

This commit is contained in:
2023-01-21 14:45:06 +01:00
parent a03053b717
commit 3675f887a6

12
lua.cpp
View File

@@ -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_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_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_DPAD_RIGHT); lua_setglobal(L, "BTN_RIGHT");
lua_pushinteger(L, SDL_CONTROLLER_BUTTON_MISC1); lua_setglobal(L, "BTN_MISC1"); lua_pushinteger(L, 15); lua_setglobal(L, "BTN_MISC1");
lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE1); lua_setglobal(L, "BTN_PADDLE1"); lua_pushinteger(L, 16); lua_setglobal(L, "BTN_PADDLE1");
lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE2); lua_setglobal(L, "BTN_PADDLE2"); lua_pushinteger(L, 17); lua_setglobal(L, "BTN_PADDLE2");
lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE3); lua_setglobal(L, "BTN_PADDLE3"); lua_pushinteger(L, 18); lua_setglobal(L, "BTN_PADDLE3");
lua_pushinteger(L, SDL_CONTROLLER_BUTTON_PADDLE4); lua_setglobal(L, "BTN_PADDLE4"); lua_pushinteger(L, 19); lua_setglobal(L, "BTN_PADDLE4");
lua_pushinteger(L, SDL_CONTROLLER_BUTTON_TOUCHPAD); lua_setglobal(L, "BTN_TOUCHPAD"); lua_pushinteger(L, 20); lua_setglobal(L, "BTN_TOUCHPAD");
lua_pushinteger(L, 0); lua_setglobal(L, "FILE_READ"); lua_pushinteger(L, 0); lua_setglobal(L, "FILE_READ");
lua_pushinteger(L, 1); lua_setglobal(L, "FILE_WRITE"); lua_pushinteger(L, 1); lua_setglobal(L, "FILE_WRITE");