mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Make dpad camera more precise (#358)
This commit is contained in:
parent
34b78700c4
commit
9adf922c08
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue