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
+1 -1
View File
@@ -51,7 +51,7 @@ int w_newRasterizer(lua_State *L)
}
else if (lua_isstring(L, 1) || luax_istype(L, 1, FILESYSTEM_FILE_T) || luax_istype(L, 1, FILESYSTEM_FILE_DATA_T))
{
love::filesystem::FileData *d = love::filesystem::luax_getFileData(L, 1);
love::filesystem::FileData *d = love::filesystem::luax_getfiledata(L, 1);
int size = luaL_checkint(L, 2);
luax_catchexcept(L,
[&]() { t = instance->newRasterizer(d, size); },