testnative: print events with --info event
This commit is contained in:
@@ -206,6 +206,14 @@ int main(int argc, char *argv[])
|
||||
while (!done) {
|
||||
/* Check for events */
|
||||
while (SDL_PollEvent(&event)) {
|
||||
if (state->verbose & VERBOSE_EVENT) {
|
||||
if (((event.type != SDL_EVENT_MOUSE_MOTION) &&
|
||||
(event.type != SDL_EVENT_FINGER_MOTION)) ||
|
||||
(state->verbose & VERBOSE_MOTION)) {
|
||||
SDLTest_PrintEvent(&event);
|
||||
}
|
||||
}
|
||||
|
||||
switch (event.type) {
|
||||
case SDL_EVENT_WINDOW_EXPOSED:
|
||||
SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
|
||||
|
||||
Reference in New Issue
Block a user