Skip to content

Commit 45c0880

Browse files
authored
Rename DisableDPadAsAnalogInput to DisableDPadMovement (#1146)
1 parent 024c35c commit 45c0880

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

UnleashedRecomp/patches/input_patches.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ g_sdlEventListenerForInputPatches;
212212

213213
static bool IsDPadThreshold(const SWA::SPadState* pPadState)
214214
{
215-
if (Config::DisableDPadAsAnalogInput)
215+
if (Config::DisableDPadMovement)
216216
return false;
217217

218218
return pPadState->IsDown(SWA::eKeyState_DpadUp) ||
@@ -240,7 +240,7 @@ static bool IsCursorThreshold(double deadzone = 0, bool isBelowThreshold = false
240240

241241
static void SetDPadAnalogDirectionX(PPCRegister& pPadState, PPCRegister& x, bool invert, float max = 1.0f)
242242
{
243-
if (Config::DisableDPadAsAnalogInput)
243+
if (Config::DisableDPadMovement)
244244
return;
245245

246246
auto pGuestPadState = (SWA::SPadState*)g_memory.Translate(pPadState.u32);
@@ -254,7 +254,7 @@ static void SetDPadAnalogDirectionX(PPCRegister& pPadState, PPCRegister& x, bool
254254

255255
static void SetDPadAnalogDirectionY(PPCRegister& pPadState, PPCRegister& y, bool invert, float max = 1.0f)
256256
{
257-
if (Config::DisableDPadAsAnalogInput)
257+
if (Config::DisableDPadMovement)
258258
return;
259259

260260
auto pGuestPadState = (SWA::SPadState*)g_memory.Translate(pPadState.u32);
@@ -292,7 +292,7 @@ void PostureDPadSupportYMidAsmHook(PPCRegister& pPadState, PPCRegister& y)
292292

293293
void PostureSpaceHurrierDPadSupportXMidAsmHook(PPCRegister& pPadState, PPCVRegister& vector)
294294
{
295-
if (Config::DisableDPadAsAnalogInput)
295+
if (Config::DisableDPadMovement)
296296
return;
297297

298298
auto pGuestPadState = (SWA::SPadState*)g_memory.Translate(pPadState.u32);
@@ -306,7 +306,7 @@ void PostureSpaceHurrierDPadSupportXMidAsmHook(PPCRegister& pPadState, PPCVRegis
306306

307307
void PostureSpaceHurrierDPadSupportYMidAsmHook(PPCRegister& pPadState, PPCVRegister& vector)
308308
{
309-
if (Config::DisableDPadAsAnalogInput)
309+
if (Config::DisableDPadMovement)
310310
return;
311311

312312
auto pGuestPadState = (SWA::SPadState*)g_memory.Translate(pPadState.u32);
@@ -430,7 +430,7 @@ PPC_FUNC(sub_8256C938)
430430
pWorldMapCursor->m_LeftStickVertical = rPadState.LeftStickVertical;
431431
pWorldMapCursor->m_LeftStickHorizontal = rPadState.LeftStickHorizontal;
432432

433-
if (!Config::DisableDPadAsAnalogInput)
433+
if (!Config::DisableDPadMovement)
434434
{
435435
if (rPadState.IsDown(SWA::eKeyState_DpadUp))
436436
pWorldMapCursor->m_LeftStickVertical = 1.0f;

UnleashedRecomp/user/config_def.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, AllowCancellingUnleash, false);
7979
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableAutoSaveWarning, false);
8080
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableBoostFilter, false);
8181
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDLCIcon, false);
82+
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDPadMovement, false);
8283
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDWMRoundedCorners, false);
84+
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableLowResolutionFontOnCustomUI, false);
8385
CONFIG_DEFINE_HIDDEN("Codes", bool, EnableEventCollisionDebugView, false);
8486
CONFIG_DEFINE_HIDDEN("Codes", bool, EnableGIMipLevelDebugView, false);
8587
CONFIG_DEFINE_HIDDEN("Codes", bool, EnableObjectCollisionDebugView, false);
@@ -92,7 +94,5 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, SaveScoreAtCheckpoints, false);
9294
CONFIG_DEFINE_HIDDEN("Codes", bool, SkipIntroLogos, false);
9395
CONFIG_DEFINE_HIDDEN("Codes", bool, UseArrowsForTimeOfDayTransition, false);
9496
CONFIG_DEFINE_HIDDEN("Codes", bool, UseOfficialTitleOnTitleBar, false);
95-
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableLowResolutionFontOnCustomUI, false);
96-
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDPadAsAnalogInput, false);
9797

9898
CONFIG_DEFINE("Update", time_t, LastChecked, 0);

0 commit comments

Comments
 (0)