Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perfect Dark Zero support #37

Merged
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clamp cover
Clippy95 committed Dec 12, 2024
commit 9a2fecb135f41bd0845b7ef1dce45f80a15310e9
1 change: 1 addition & 0 deletions src/xenia/hid/winkey/hookables/PerfectDarkZero.cc
Original file line number Diff line number Diff line change
@@ -173,6 +173,7 @@ bool PerfectDarkZeroGame::DoHooks(uint32_t user_index,
*cam_x = DegreetoRadians(
degree_x); // Convert degrees back to radians for normal aiming
} else {
degree_x = std::clamp(degree_x, -68.0f, 68.0f);
*cam_x = degree_x; // Directly store degrees for cover aiming
}