mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-18 09:18:14 +00:00
Clean up old-style null check
This commit is contained in:
@@ -898,7 +898,7 @@ const bool *SDL_GetKeyboardState(int *numkeys)
|
||||
{
|
||||
SDL_Keyboard *keyboard = &SDL_keyboard;
|
||||
|
||||
if (numkeys != (int *)0) {
|
||||
if (numkeys) {
|
||||
*numkeys = SDL_SCANCODE_COUNT;
|
||||
}
|
||||
return keyboard->keystate;
|
||||
|
Reference in New Issue
Block a user