From 3d8fe01bc6965a6339e69a755b06c7eb2b4ba532 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sat, 19 Nov 2022 19:44:59 -0600 Subject: [PATCH] Input:DInput: Fix build after adding FullAxis support for SDL --- pcsx2/Frontend/DInputSource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Frontend/DInputSource.cpp b/pcsx2/Frontend/DInputSource.cpp index b86bb5d577..8dbc7cc433 100644 --- a/pcsx2/Frontend/DInputSource.cpp +++ b/pcsx2/Frontend/DInputSource.cpp @@ -345,7 +345,7 @@ std::optional DInputSource::ParseKeyString(const std::string_vi key.source_subtype = InputSubclass::ControllerAxis; key.data = axis_index.value(); - key.negative = (binding[0] == '-'); + key.modifier = (binding[0] == '-') ? InputModifier::Negate : InputModifier::None; return key; } else if (StringUtil::StartsWith(binding, "Hat")) @@ -391,7 +391,7 @@ std::string DInputSource::ConvertKeyToString(InputBindingKey key) { if (key.source_subtype == InputSubclass::ControllerAxis) { - ret = fmt::format("DInput-{}/{}Axis{}", u32(key.source_index), key.negative ? '-' : '+', u32(key.data)); + ret = fmt::format("DInput-{}/{}Axis{}", u32(key.source_index), key.modifier == InputModifier::Negate ? '-' : '+', u32(key.data)); } else if (key.source_subtype == InputSubclass::ControllerButton && key.data >= MAX_NUM_BUTTONS) {