mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
Remove code added accidently for testing
This commit is contained in:
@@ -158,11 +158,6 @@ bool Joystick::open(int64 deviceid)
|
||||
else
|
||||
gamepadType = GAMEPAD_TYPE_UNKNOWN;
|
||||
}
|
||||
else
|
||||
{
|
||||
auto err = SDL_GetError();
|
||||
auto t = 1;
|
||||
}
|
||||
|
||||
return isConnected();
|
||||
}
|
||||
|
||||
@@ -49,11 +49,7 @@ JoystickModule::JoystickModule()
|
||||
int count = 0;
|
||||
SDL_JoystickID *sticks = SDL_GetJoysticks(&count);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
auto test = SDL_OpenGamepad(sticks[i]);
|
||||
auto err = SDL_GetError();
|
||||
addJoystick((int64)sticks[i]);
|
||||
}
|
||||
SDL_free(sticks);
|
||||
|
||||
// Start joystick event watching. Joysticks are automatically added and
|
||||
|
||||
Reference in New Issue
Block a user