Another option is to use SDL's main callbacks, which handle this for you without platform-specific code in your app. Please refer to the wiki or docs/README-main-functions.md in the SDL source code.
emu_attract.toml the same with no pad input: the game's title and attract loop emu_profile.toml renut_play.toml: no diagnostics, the pad to gameplay, the sampling profiler on emu_ab.toml renut_ab.toml ...