mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 01:08:26 +00:00
testnative: print events with --info event
This commit is contained in:
parent
6f6f4fbfd3
commit
ef6521aee7
3 changed files with 34 additions and 3 deletions
|
@ -208,9 +208,16 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state);
|
|||
SDL_bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv);
|
||||
|
||||
/**
|
||||
* Common event handler for test windows if you use a standard SDL_main.
|
||||
* Print the details of an event.
|
||||
*
|
||||
* This will free data from the event, like the string in a drop event!
|
||||
* This is automatically called by SDLTest_CommonEvent() as needed.
|
||||
*
|
||||
* \param event The event to print.
|
||||
*/
|
||||
void SDLTest_PrintEvent(const SDL_Event *event);
|
||||
|
||||
/**
|
||||
* Common event handler for test windows if you use a standard SDL_main.
|
||||
*
|
||||
* \param state The common state used to create test window.
|
||||
* \param event The event to handle.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue