input_common: Add property to invert an axis button
This commit is contained in:
parent
46e835f2d6
commit
f017335fef
6 changed files with 15 additions and 3 deletions
|
@ -58,6 +58,8 @@ void InputEngine::SetHatButton(const PadIdentifier& identifier, int button, u8 v
|
|||
}
|
||||
|
||||
void InputEngine::SetAxis(const PadIdentifier& identifier, int axis, f32 value) {
|
||||
value /= 2.0f;
|
||||
value -= 0.5f;
|
||||
{
|
||||
std::scoped_lock lock{mutex};
|
||||
ControllerData& controller = controller_list.at(identifier);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue