Skip to content

Commit

Permalink
This should work but doesn't on real console? Do I need to enable the…
Browse files Browse the repository at this point in the history
… buttons first?
  • Loading branch information
AdmiralCurtiss committed Mar 23, 2017
1 parent f248ce5 commit 4e549f6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/3dsinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ u32 input3dsScanInputForEmulation()
// -----------------------------------------------
#endif

if (keysDown & KEY_TOUCH)
if ((keysDown & KEY_TOUCH) || ((keysDown & (KEY_ZL | KEY_ZR)) && ((currKeysHeld & (KEY_ZL | KEY_ZR)) == (KEY_ZL | KEY_ZR))))
{
impl3dsTouchScreenPressed();

Expand Down
11 changes: 7 additions & 4 deletions source/3dsmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,11 @@ void menuSetupCheats()
//--------------------------------------------------------
void emulatorInitialize()
{
file3dsInitialize();
// Performance: use the higher clock speed for new 3DS.
osSetSpeedupEnable(true);
APT_CheckNew3DS(&settings3DS.IsNew3DS);

file3dsInitialize();

romFileNameLastSelected[0] = 0;

Expand Down Expand Up @@ -1116,8 +1120,6 @@ void emulatorInitialize()
*/
printf ("Initialization complete\n");

osSetSpeedupEnable(1); // Performance: use the higher clock speed for new 3DS.

enableExitHook();

settingsLoad(false);
Expand Down Expand Up @@ -1272,7 +1274,8 @@ void emulatorLoop()
menu3dsDrawBlackScreen();
if (settings3DS.HideUnnecessaryBottomScrText == 0)
{
ui3dsDrawStringWithNoWrapping(0, 100, 320, 115, 0x7f7f7f, HALIGN_CENTER, "Touch screen for menu");
ui3dsDrawStringWithNoWrapping(0, 100, 320, 115, 0x7f7f7f, HALIGN_CENTER,
settings3DS.IsNew3DS ? "Touch screen or press ZL + ZR for menu" : "Touch screen for menu");
}

snd3dsStartPlaying();
Expand Down
2 changes: 2 additions & 0 deletions source/3dssettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ typedef struct
// 3 - 60 seconds
// 4 - Never

bool IsNew3DS; // Whether the 3DS this is running on is a New or an Old model.

} S9xSettings3DS;

0 comments on commit 4e549f6

Please sign in to comment.