From 3675f887a60b86677720418e7ce486093197753a Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Sat, 21 Jan 2023 14:45:06 +0100 Subject: [PATCH] - Fixed problem with SDL constants on linux (outdated SDL version, anyways) --- lua.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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");