/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
int main(int argc, char *argv[])
/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
int main(int argc, char *argv[])
{
    SDL_Scancode scancode;
    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    if (SDL_Init(SDL_INIT_VIDEO) < 0) {
        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
        exit(1);
    }
    for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) {
        SDL_Log("Scancode #%d, \"%s\"\n", scancode,
               SDL_GetScancodeName(scancode));
    }
    SDL_Quit();
    return (0);
}