mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 00:17:40 +00:00
Initialize interface structures so they can be extended in the future
We guarantee that we will only add to the end of these interfaces, and any new fields will be optional.
This commit is contained in:
parent
434193d153
commit
702ed83f72
13 changed files with 130 additions and 22 deletions
|
@ -1159,7 +1159,7 @@ static void OpenVirtualGamepad(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SDL_zero(desc);
|
||||
SDL_INIT_INTERFACE(&desc);
|
||||
desc.type = SDL_JOYSTICK_TYPE_GAMEPAD;
|
||||
desc.naxes = SDL_GAMEPAD_AXIS_MAX;
|
||||
desc.nbuttons = SDL_GAMEPAD_BUTTON_MAX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue