Replaced Joystick:saveGamepadMapping with love.joystick.saveGamepadMappings, which saves all gamepad mappings from both recently-used joysticks and recently-modified mappings. saveGamepadMappings returns a string of newline-separated mappings and takes an optional filename argument which writes it to a file.

This commit is contained in:
Alex Szpakowski
2014-06-05 00:25:34 -03:00
parent 10e0d4b900
commit ddb9997ead
6 changed files with 60 additions and 45 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ int w_getJoystickCount(lua_State *L);
int w_setGamepadMapping(lua_State *L);
int w_getGamepadMapping(lua_State *L);
int w_loadGamepadMappings(lua_State *L);
int w_saveGamepadMapping(lua_State *L);
int w_saveGamepadMappings(lua_State *L);
extern "C" LOVE_EXPORT int luaopen_love_joystick(lua_State *L);
} // joystick