mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 08:57:40 +00:00
The joystick instance ID is already set in the open call
This commit is contained in:
parent
07c49d1a67
commit
b391e6477e
12 changed files with 0 additions and 12 deletions
|
@ -422,7 +422,6 @@ static int VIRTUAL_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
|||
if (!hwdata) {
|
||||
return SDL_SetError("No such device");
|
||||
}
|
||||
joystick->instance_id = hwdata->instance_id;
|
||||
joystick->hwdata = hwdata;
|
||||
joystick->naxes = hwdata->desc.naxes;
|
||||
joystick->nbuttons = hwdata->desc.nbuttons;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue