Skip to content

Commit c10213f

Browse files
Clippy95Clippy95
authored andcommitted
Crackdown 2 Tweak (#32)
* Update README.md * Invert inversion and remove unnecessary mouse check * Update README.md --------- Co-authored-by: Clippy95 <[email protected]>
1 parent 7919b25 commit c10213f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/xenia/hid/winkey/hookables/Crackdown2.cc

+2-7
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ bool Crackdown2Game::DoHooks(uint32_t user_index, RawInputState& input_state,
8383
return false;
8484
}
8585

86-
// Don't constantly write if there is no mouse movement.
87-
if (input_state.mouse.x_delta == 0 || input_state.mouse.y_delta == 0) {
88-
return false;
89-
}
90-
9186
XThread* current_thread = XThread::GetCurrentThread();
9287

9388
if (!current_thread) {
@@ -118,7 +113,7 @@ bool Crackdown2Game::DoHooks(uint32_t user_index, RawInputState& input_state,
118113
float degree_y = RadianstoDegree(*radian_y);
119114

120115
// X-axis = 0 to 360
121-
if (!cvars::invert_x) {
116+
if (cvars::invert_x) {
122117
degree_x += (input_state.mouse.x_delta / 50.f) * (float)cvars::sensitivity;
123118
*radian_x = DegreetoRadians(degree_x);
124119
} else {
@@ -127,7 +122,7 @@ bool Crackdown2Game::DoHooks(uint32_t user_index, RawInputState& input_state,
127122
}
128123

129124
// Y-axis = -90 to 90
130-
if (!cvars::invert_y) {
125+
if (cvars::invert_y) {
131126
degree_y += (input_state.mouse.y_delta / 50.f) * (float)cvars::sensitivity;
132127
} else {
133128
degree_y -= (input_state.mouse.y_delta / 50.f) * (float)cvars::sensitivity;

0 commit comments

Comments
 (0)