The joystick instance ID is already set in the open call

This commit is contained in:
Sam Lantinga
2024-03-25 06:57:02 -07:00
parent 07c49d1a67
commit b391e6477e
12 changed files with 0 additions and 12 deletions

View File

@@ -572,7 +572,6 @@ static int ANDROID_JoystickOpen(SDL_Joystick *joystick, int device_index)
return SDL_SetError("Joystick already opened");
}
joystick->instance_id = item->device_instance;
joystick->hwdata = (struct joystick_hwdata *)item;
item->joystick = joystick;
joystick->nhats = item->nhats;