mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Merge pull request #10486 from ttttcrngyblflpp/negative-axis-scaling
Make pos/neg analog axes symmetrical
This commit is contained in:
commit
3fdc6cbffe
@ -158,12 +158,12 @@ GCPadStatus GCPad::GetInput() const
|
|||||||
|
|
||||||
// sticks
|
// sticks
|
||||||
const auto main_stick_state = m_main_stick->GetState();
|
const auto main_stick_state = m_main_stick->GetState();
|
||||||
pad.stickX = MapFloat<u8>(main_stick_state.x, GCPadStatus::MAIN_STICK_CENTER_X);
|
pad.stickX = MapFloat<u8>(main_stick_state.x, GCPadStatus::MAIN_STICK_CENTER_X, 1);
|
||||||
pad.stickY = MapFloat<u8>(main_stick_state.y, GCPadStatus::MAIN_STICK_CENTER_Y);
|
pad.stickY = MapFloat<u8>(main_stick_state.y, GCPadStatus::MAIN_STICK_CENTER_Y, 1);
|
||||||
|
|
||||||
const auto c_stick_state = m_c_stick->GetState();
|
const auto c_stick_state = m_c_stick->GetState();
|
||||||
pad.substickX = MapFloat<u8>(c_stick_state.x, GCPadStatus::C_STICK_CENTER_X);
|
pad.substickX = MapFloat<u8>(c_stick_state.x, GCPadStatus::C_STICK_CENTER_X, 1);
|
||||||
pad.substickY = MapFloat<u8>(c_stick_state.y, GCPadStatus::C_STICK_CENTER_Y);
|
pad.substickY = MapFloat<u8>(c_stick_state.y, GCPadStatus::C_STICK_CENTER_Y, 1);
|
||||||
|
|
||||||
// triggers
|
// triggers
|
||||||
std::array<ControlState, 2> triggers;
|
std::array<ControlState, 2> triggers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user