mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 07:29:09 +00:00
Renamed SDL_AttachVirtualJoystickEx() to SDL_AttachVirtualJoystick()
The shorthand version of this function didn't allow specifying a controller name, which seems pretty important. It seems like anyone actually implementing a virtual joystick is going to want to use some of the extended functionality.
This commit is contained in:
parent
598b4e0a1f
commit
bcbf09acde
10 changed files with 18 additions and 62 deletions
|
@ -1125,7 +1125,7 @@ static void OpenVirtualGamepad(void)
|
|||
desc.RumbleTriggers = VirtualGamepadRumbleTriggers;
|
||||
desc.SetLED = VirtualGamepadSetLED;
|
||||
|
||||
virtual_id = SDL_AttachVirtualJoystickEx(&desc);
|
||||
virtual_id = SDL_AttachVirtualJoystick(&desc);
|
||||
if (virtual_id == 0) {
|
||||
SDL_Log("Couldn't attach virtual device: %s\n", SDL_GetError());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue