diff options
| author | MelonSpeedruns <melonspeedruns@outlook.com> | 2022-03-29 22:23:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-29 22:23:02 -0400 |
| commit | 98ddacef010b40d3f7039a9767b168af9c56ec00 (patch) | |
| tree | e8c79dd53614d47053eb202de2fae26f2ac15ec2 /soh/src/code | |
| parent | 6aa88941253884213ed4638268ae3065b22f83c5 (diff) | |
Fixed PS5 gyro & Added GUI calibration button (#78)
* Fixed PS5 gyro & Added GUI calibration button
* Change PS4/PS5 LED to the tunic color
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/padmgr.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/soh/src/code/padmgr.c b/soh/src/code/padmgr.c index fb4ceb8e6..973c2b446 100644 --- a/soh/src/code/padmgr.c +++ b/soh/src/code/padmgr.c @@ -272,9 +272,19 @@ void PadMgr_ProcessInputs(PadMgr* padMgr) { controllerCallback.rumble = padMgr->rumbleEnable[0] > 0 ? 1 : 0; if (HealthMeter_IsCritical()) { - controllerCallback.ledColor = 1; - } else { controllerCallback.ledColor = 0; + } else if (gGlobalCtx) { + switch (CUR_EQUIP_VALUE(EQUIP_TUNIC) - 1) { + case PLAYER_TUNIC_KOKIRI: + controllerCallback.ledColor = 1; + break; + case PLAYER_TUNIC_GORON: + controllerCallback.ledColor = 2; + break; + case PLAYER_TUNIC_ZORA: + controllerCallback.ledColor = 3; + break; + } } OTRControllerCallback(&controllerCallback); |
