39 lines
620 B
C
39 lines
620 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include <switch.h>
|
|
|
|
void nigguh() {
|
|
printf("fuck nigguhs\n");
|
|
}
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
consoleInit(NULL);
|
|
padConfigureInput(1, HidNpadStyleSet_NpadStandard);
|
|
|
|
PadState pad;
|
|
padInitializeDefault(&pad);
|
|
|
|
while (appletMainLoop())
|
|
{
|
|
padUpdate(&pad);
|
|
|
|
u64 kDown = padGetButtonsDown(&pad);
|
|
|
|
if (kDown & HidNpadButton_Plus)
|
|
break;
|
|
|
|
while (kDown & HidNpadButton_B)
|
|
{
|
|
nigguh();
|
|
}
|
|
|
|
consoleUpdate(NULL);
|
|
}
|
|
|
|
consoleExit(NULL);
|
|
return 0;
|
|
}
|