input: fix XInput thumbstick up and down (?), remove redundant menu L/R key bindings for DS4 stick
This commit is contained in:
@@ -211,6 +211,18 @@ namespace TLAC::Input
|
||||
if (state.Gamepad.sThumbLX < -10000)
|
||||
currentState.KeyStates[i] = true;
|
||||
SetTapStates(i, elapsed);
|
||||
|
||||
i = XINPUT_LUP;
|
||||
currentState.KeyStates[i] = false;
|
||||
if (state.Gamepad.sThumbLY > 10000)
|
||||
currentState.KeyStates[i] = true;
|
||||
SetTapStates(i, elapsed);
|
||||
|
||||
i = XINPUT_LDOWN;
|
||||
currentState.KeyStates[i] = false;
|
||||
if (state.Gamepad.sThumbLY < -10000)
|
||||
currentState.KeyStates[i] = true;
|
||||
SetTapStates(i, elapsed);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -226,6 +238,18 @@ namespace TLAC::Input
|
||||
if (state.Gamepad.sThumbRX < -10000)
|
||||
currentState.KeyStates[i] = true;
|
||||
SetTapStates(i, elapsed);
|
||||
|
||||
i = XINPUT_RUP;
|
||||
currentState.KeyStates[i] = false;
|
||||
if (state.Gamepad.sThumbRY > 10000)
|
||||
currentState.KeyStates[i] = true;
|
||||
SetTapStates(i, elapsed);
|
||||
|
||||
i = XINPUT_RDOWN;
|
||||
currentState.KeyStates[i] = false;
|
||||
if (state.Gamepad.sThumbRY < -10000)
|
||||
currentState.KeyStates[i] = true;
|
||||
SetTapStates(i, elapsed);
|
||||
}
|
||||
|
||||
if (rumble && TLAC::Components::TouchSliderEmulator::LatestInstance->isSliderTouched() && TLAC::Components::TargetInspector::ShouldVibrate)
|
||||
|
||||
Reference in New Issue
Block a user