mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
The parameter to SDL_AppEvent() should be non-const
This allows functions like SDL_ConvertEventToRenderCoordinates() to work without having to copy the event. Fixes https://github.com/libsdl-org/SDL/issues/10691
This commit is contained in:
@@ -178,7 +178,7 @@ not check the event queue in this function (SDL_AppEvent exists for that).
|
||||
Next:
|
||||
|
||||
```c
|
||||
SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event);
|
||||
SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event);
|
||||
```
|
||||
|
||||
This will be called whenever an SDL event arrives. Your app should not call
|
||||
|
||||
Reference in New Issue
Block a user