Clear keys on exit

Stops start and select from being stuck on when you exit the homebrew.
This commit is contained in:
Poke 2015-10-16 13:05:39 +10:30
parent da0a344f2f
commit 7e64fea254
2 changed files with 5 additions and 2 deletions

View File

@ -139,7 +139,10 @@ int main(void) {
//receiveBuffer(sizeof(struct packet));
if((kHeld & KEY_START) && (kHeld & KEY_SELECT)) longjmp(exitJmp, 1);
if((kHeld & KEY_START) && (kHeld & KEY_SELECT)) {
sendKeys(0, circlePad, touch, cStick);
longjmp(exitJmp, 1);
}
gfxFlushBuffers();
gspWaitForVBlank();

View File

@ -62,7 +62,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nShow)
initNetwork();
char nButtons = GetVJDButtonNumber(iInterface);
if(nButtons <16) printf("Your vJoy has less than 16 buttons (8 by default), some may not work!\n");
if(nButtons <16) printf("Your vJoy has %d buttons, 3DSController supports 16!\n", nButtons);
printf("Port: %d\n", settings.port);