Make dpad camera more precise (#358)

This commit is contained in:
Sunk 2024-10-08 02:48:42 -04:00 committed by GitHub
parent 34b78700c4
commit 9adf922c08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12299,9 +12299,9 @@ void mode_rom_hack_camera(struct Camera *c) {
if (gMarioStates[0].controller->buttonPressed & U_JPAD) {
sRomHackYaw = DEGREES(180 + 90) - gMarioStates[0].faceAngle[1];
} else if (gMarioStates[0].controller->buttonDown & L_JPAD) {
sRomHackYaw -= DEGREES(1) * (camera_config_is_x_inverted() ? -1 : 1);
sRomHackYaw -= DEGREES(0.5) * (camera_config_is_x_inverted() ? -1 : 1);
} else if (gMarioStates[0].controller->buttonDown & R_JPAD) {
sRomHackYaw += DEGREES(1) * (camera_config_is_x_inverted() ? -1 : 1);
sRomHackYaw += DEGREES(0.5) * (camera_config_is_x_inverted() ? -1 : 1);
} else if (gMarioStates[0].controller->buttonPressed & D_JPAD) {
sRomHackYaw = snap_to_45_degrees(sRomHackYaw);
}