Add Free Look Camera Reset (#663)

This commit is contained in:
inspectredc
2024-06-14 20:55:05 -04:00
committed by GitHub
parent 84b9b4218a
commit df81f97e43
+5
View File
@@ -141,6 +141,11 @@ bool Camera_CanFreeLook(Camera* camera) {
if (!sCanFreeLook && (fabsf(camX) >= 15.0f || fabsf(camY) >= 15.0f)) {
sCanFreeLook = true;
}
// Pressing Z will "Reset" Camera
if (CHECK_BTN_ALL(sCamPlayState->state.input[0].press.button, BTN_Z)) {
sCanFreeLook = false;
}
return sCanFreeLook;
}