mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 06:58:30 +00:00
Added a cleanup function for virtual joysticks
This commit is contained in:
@@ -70,6 +70,10 @@ static void VIRTUAL_FreeHWData(joystick_hwdata *hwdata)
|
||||
return;
|
||||
}
|
||||
|
||||
if (hwdata->desc.Cleanup) {
|
||||
hwdata->desc.Cleanup(hwdata->desc.userdata);
|
||||
}
|
||||
|
||||
// Remove hwdata from SDL-global list
|
||||
for (cur = g_VJoys; cur; prev = cur, cur = cur->next) {
|
||||
if (hwdata == cur) {
|
||||
|
Reference in New Issue
Block a user