Imported more changes from 3ds-examples.

This commit is contained in:
yellows8 2018-02-18 18:21:24 -05:00
parent c889e7ca31
commit ccd9f78162
4 changed files with 16 additions and 4 deletions

View File

@ -64,7 +64,10 @@ int main(int argc, char **argv)
//Scan all the inputs. This should be done once for each frame
hidScanInput();
if (hidKeysDown(CONTROLLER_P1_AUTO) & KEY_PLUS) break; // break in order to return to hbmenu
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
u32 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
if (hidKeysDown(CONTROLLER_P1_AUTO) & KEY_A)
{

View File

@ -20,7 +20,10 @@ int main(int argc, char **argv)
//Scan all the inputs. This should be done once for each frame
hidScanInput();
if (hidKeysDown(CONTROLLER_P1_AUTO) & KEY_PLUS) break; // break in order to return to hbmenu
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
u32 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
gfxFlushBuffers();
gfxSwapBuffers();

View File

@ -29,7 +29,10 @@ int main(int argc, char **argv)
//Scan all the inputs. This should be done once for each frame
hidScanInput();
if (hidKeysDown(CONTROLLER_P1_AUTO) & KEY_PLUS) break; // break in order to return to hbmenu
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
u32 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
u32 width, height;
u32 pos;

View File

@ -35,7 +35,10 @@ int main(int argc, char **argv)
//Scan all the inputs. This should be done once for each frame
hidScanInput();
if (hidKeysDown(CONTROLLER_P1_AUTO) & KEY_PLUS) break; // break in order to return to hbmenu
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
u32 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
gfxFlushBuffers();
gfxSwapBuffers();