File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ [Settings]
2+ ShowNetPlayMessages = True
Original file line number Diff line number Diff line change @@ -151,13 +151,14 @@ GCPadStatus GCPad::GetInput() const
151151 m_dpad->GetState (&pad.button , dpad_bitmasks, m_input_override_function);
152152
153153 // sticks
154+ // P+ change: revert the coordinates back to un-normalized/symmetrical ranges to fix rectangle controllers
154155 const auto main_stick_state = m_main_stick->GetState (m_input_override_function);
155- pad.stickX = MapFloat<u8 >(main_stick_state.x , GCPadStatus::MAIN_STICK_CENTER_X, 1 );
156- pad.stickY = MapFloat<u8 >(main_stick_state.y , GCPadStatus::MAIN_STICK_CENTER_Y, 1 );
156+ pad.stickX = MapFloat<u8 >(main_stick_state.x , GCPadStatus::MAIN_STICK_CENTER_X);
157+ pad.stickY = MapFloat<u8 >(main_stick_state.y , GCPadStatus::MAIN_STICK_CENTER_Y);
157158
158159 const auto c_stick_state = m_c_stick->GetState (m_input_override_function);
159- pad.substickX = MapFloat<u8 >(c_stick_state.x , GCPadStatus::C_STICK_CENTER_X, 1 );
160- pad.substickY = MapFloat<u8 >(c_stick_state.y , GCPadStatus::C_STICK_CENTER_Y, 1 );
160+ pad.substickX = MapFloat<u8 >(c_stick_state.x , GCPadStatus::C_STICK_CENTER_X);
161+ pad.substickY = MapFloat<u8 >(c_stick_state.y , GCPadStatus::C_STICK_CENTER_Y);
161162
162163 // triggers
163164 std::array<ControlState, 2 > triggers;
You can’t perform that action at this time.
0 commit comments