Clear keys on exit
Stops start and select from being stuck on when you exit the homebrew.
This commit is contained in:
parent
da0a344f2f
commit
7e64fea254
2 changed files with 5 additions and 2 deletions
|
@ -139,7 +139,10 @@ int main(void) {
|
||||||
|
|
||||||
//receiveBuffer(sizeof(struct packet));
|
//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();
|
gfxFlushBuffers();
|
||||||
gspWaitForVBlank();
|
gspWaitForVBlank();
|
||||||
|
|
|
@ -62,7 +62,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nShow)
|
||||||
initNetwork();
|
initNetwork();
|
||||||
|
|
||||||
char nButtons = GetVJDButtonNumber(iInterface);
|
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);
|
printf("Port: %d\n", settings.port);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue