-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotkey settings(not working yet), smarter menu selection
- Loading branch information
Showing
5 changed files
with
179 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <3ds.h> | ||
|
||
u32 exithotkey; | ||
|
||
void setDefaultHotkeys(); | ||
u32 listenAndSetHotkey(); | ||
|
||
void setDefaultHotkeys() { | ||
exithotkey = (KEY_START); | ||
} | ||
|
||
u32 listenAndSetHotkey() { | ||
u32 kDown; | ||
u32 keydowns = 0; | ||
hidScanInput(); | ||
kDown = hidKeysHeld(); | ||
while (kDown) { | ||
hidScanInput(); | ||
kDown = hidKeysHeld(); | ||
keydowns = kDown; | ||
char buf[10]; | ||
snprintf(buf, 10, "%ld", keydowns); | ||
stringLog(buf); | ||
} | ||
return keydowns; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters