diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-16 19:02:40 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-16 19:02:40 +0200 |
commit | 8641e9d0bb123580a7a8b701a72c1a813503bc9a (patch) | |
tree | be236ef46d2f585da1c266597637151fc80ae55d /src/core/Frontend.cpp | |
parent | Fix ped comments playing at full volume behind the wall (diff) | |
parent | Use svcGetInfo definitions from libnx (diff) | |
download | re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.gz re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.bz2 re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.lz re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.xz re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.zst re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Frontend.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp index b5d12d58..666774fe 100644 --- a/src/core/Frontend.cpp +++ b/src/core/Frontend.cpp @@ -142,8 +142,12 @@ int8 CMenuManager::m_PrefsIslandLoading = ISLAND_LOADING_LOW; #endif #ifdef GAMEPAD_MENU +#ifdef __SWITCH__ +int8 CMenuManager::m_PrefsControllerType = CONTROLLER_NINTENDO_SWITCH; +#else int8 CMenuManager::m_PrefsControllerType = CONTROLLER_XBOXONE; #endif +#endif int32 CMenuManager::OS_Language = LANG_ENGLISH; int8 CMenuManager::m_PrefsUseVibration; @@ -3674,6 +3678,7 @@ const char* controllerTypesPaths[] = { "MODELS/FRONTEND_DS4.TXD", "MODELS/FRONTEND_X360.TXD", "MODELS/FRONTEND_XONE.TXD", + "MODELS/FRONTEND_NSW.TXD", }; void @@ -3686,6 +3691,9 @@ CMenuManager::LoadController(int8 type) case CONTROLLER_DUALSHOCK4: CFont::LoadButtons("MODELS/PS3BTNS.TXD"); break; + case CONTROLLER_NINTENDO_SWITCH: + CFont::LoadButtons("MODELS/NSWBTNS.TXD"); + break; default: CFont::LoadButtons("MODELS/X360BTNS.TXD"); break; @@ -5925,6 +5933,18 @@ CMenuManager::PrintController(void) TEXT_L2R2_Y += 5.0f; TEXT_SELECT_X += 3.0f; break; + case CONTROLLER_NINTENDO_SWITCH: + TEXT_L1_Y += 5.0f; + TEXT_L1_Y_VEH = TEXT_L1_Y; + TEXT_R1_Y += 5.0f; + TEXT_TRIANGLE_Y += 3.0f; + TEXT_CIRCLE_Y += 3.0f; + TEXT_CROSS_Y += 3.0f; + TEXT_LSTICK_Y -= 23.0f; + TEXT_DPAD_Y += 25.0; + TEXT_RSTICK_Y += 1.0f; + TEXT_R3_Y += 1.0f; + break; }; if (m_DisplayControllerOnFoot) { |