Added love.joystick.loadGamepadMappings (resolves issue #842), and Joystick:saveGamepadMapping.

The latter returns a mapping string, and the former loads a newline-separated list of mapping strings.
This commit is contained in:
Alex Szpakowski
2014-06-04 15:50:06 -03:00
parent dfa319e01a
commit 79b453653a
14 changed files with 166 additions and 35 deletions
@@ -172,7 +172,7 @@ int w_newImage(lua_State *L)
if (image == nullptr)
return luaL_error(L, "Cannot load images without the love.image module.");
love::filesystem::FileData *fdata = love::filesystem::luax_getFileData(L, 1);
love::filesystem::FileData *fdata = love::filesystem::luax_getfiledata(L, 1);
if (image->isCompressed(fdata))
{