Definition at line 29 of file testdropfile.c.
References done, SDL_Event::drop, i, SDLTest_CommonState::num_windows, quit(), renderer, SDLTest_CommonState::renderers, SDL_DROPBEGIN, SDL_DROPCOMPLETE, SDL_DROPFILE, SDL_DROPTEXT, SDL_ENABLE, SDL_EventState, SDL_free, SDL_INIT_VIDEO, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_PollEvent, SDL_RenderClear, SDL_RenderPresent, SDL_SetRenderDrawColor, SDL_strncmp, SDLTest_CommonArg(), SDLTest_CommonCreateState(), SDLTest_CommonEvent(), SDLTest_CommonInit(), SDLTest_CommonUsage(), SDL_Event::type, and SDL_DropEvent::windowID.
{
return 1;
}
for (i = 1; i < argc;) {
int consumed;
consumed = 1;
}
if (consumed == 0) {
consumed = -1;
}
if (consumed < 0) {
}
i += consumed;
}
}
for (i = 0; i <
state->num_windows; ++
i) {
}
done = 0;
while (!done) {
const char *typestr = (
event.type ==
SDL_DROPFILE) ?
"File" :
"Text";
char *dropped_filedir = event.drop.file;
SDL_Log(
"%s dropped on window %u: %s", typestr, (
unsigned int) event.
drop.
windowID, dropped_filedir);
}
}
}
return(0);
}