SDL_GetKeyboards() follows the SDL_GetStringRule
This commit is contained in:
parent
5ce0aacaa4
commit
6ca18ed0e5
6 changed files with 13 additions and 14 deletions
|
@ -177,7 +177,7 @@ SDL_bool SDL_HasKeyboard(void)
|
|||
return (SDL_keyboard_count > 0);
|
||||
}
|
||||
|
||||
SDL_KeyboardID *SDL_GetKeyboards(int *count)
|
||||
const SDL_KeyboardID *SDL_GetKeyboards(int *count)
|
||||
{
|
||||
int i;
|
||||
SDL_KeyboardID *keyboards;
|
||||
|
@ -198,7 +198,7 @@ SDL_KeyboardID *SDL_GetKeyboards(int *count)
|
|||
}
|
||||
}
|
||||
|
||||
return keyboards;
|
||||
return SDL_FreeLater(keyboards);
|
||||
}
|
||||
|
||||
const char *SDL_GetKeyboardNameForID(SDL_KeyboardID instance_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue