Replaced love.joystick.getJoystick with love.joystick.getJoysticks (returns a table of all connected joysticks), and renamed Joystick:getIndex to Joystick:getConnectedIndex

This commit is contained in:
Alex Szpakowski
2013-08-26 17:37:59 -03:00
parent 75eb34379c
commit 6ade6225df
3 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ static const luaL_Reg functions[] =
{ "isGamepadDown", w_Joystick_isGamepadDown },
// From wrap_JoystickModule.
{ "getIndex", w_getIndex },
{ "getConnectedIndex", w_getIndex },
{ "getGamepadMapping", w_getGamepadMapping },
{ 0, 0 },
};