From 7e64fea25425facdb4588d51f277a305c52affce Mon Sep 17 00:00:00 2001 From: Poke Date: Fri, 16 Oct 2015 13:05:39 +1030 Subject: [PATCH] Clear keys on exit Stops start and select from being stuck on when you exit the homebrew. --- 3DS/source/main.c | 5 ++++- PC/source/main.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/3DS/source/main.c b/3DS/source/main.c index b76d011..e61954b 100644 --- a/3DS/source/main.c +++ b/3DS/source/main.c @@ -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(); diff --git a/PC/source/main.c b/PC/source/main.c index 38f8388..23d6dd8 100644 --- a/PC/source/main.c +++ b/PC/source/main.c @@ -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);