- Fixed problem with SDL constants on linux (outdated SDL version, anyways)
This commit is contained in:
12
lua.cpp
12
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_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");
|
||||||
|
|||||||
Reference in New Issue
Block a user