mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Revert that last commit, the wrappers already handle the offset
--HG-- branch : minor
This commit is contained in:
@@ -68,7 +68,7 @@ namespace sdl
|
|||||||
|
|
||||||
bool Joystick::checkIndex(int index)
|
bool Joystick::checkIndex(int index)
|
||||||
{
|
{
|
||||||
return index > 0 && index <= getNumJoysticks();
|
return index >= 0 && index < getNumJoysticks();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Joystick::getNumJoysticks()
|
int Joystick::getNumJoysticks()
|
||||||
|
|||||||
Reference in New Issue
Block a user