35 lines
671 B
C++
35 lines
671 B
C++
#include <cstdio>
|
|
|
|
#include <switch.h>
|
|
|
|
#include <frostbite2D/platform/switch.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
(void)argc;
|
|
(void)argv;
|
|
|
|
consoleInit(nullptr);
|
|
padConfigureInput(1, HidNpadStyleSet_NpadStandard);
|
|
|
|
PadState pad;
|
|
padInitializeDefault(&pad);
|
|
|
|
frostbite2D::switchInit();
|
|
|
|
std::printf("Frostbite2D Switch smoke test\n");
|
|
std::printf("Press PLUS to exit.\n");
|
|
|
|
while (appletMainLoop()) {
|
|
padUpdate(&pad);
|
|
if (padGetButtonsDown(&pad) & HidNpadButton_Plus) {
|
|
break;
|
|
}
|
|
consoleUpdate(nullptr);
|
|
}
|
|
|
|
frostbite2D::switchShutdown();
|
|
consoleExit(nullptr);
|
|
return 0;
|
|
}
|