distribution/packages/emulators/standalone/duckstation-sa/patches/wayland/004-fix-evdev-compile.patch
2023-04-25 19:57:37 +00:00

23 lines
1 KiB
Diff

diff --git a/src/frontend-common/evdev_input_source.cpp b/src/frontend-common/evdev_input_source.cpp
index 970e0ca4..480fb0ba 100644
--- a/src/frontend-common/evdev_input_source.cpp
+++ b/src/frontend-common/evdev_input_source.cpp
@@ -328,7 +328,7 @@ std::optional<InputBindingKey> EvdevInputSource::ParseKeyString(const std::strin
if (abinding == axis.name)
{
key.source_subtype = InputSubclass::ControllerAxis;
- key.negative = (binding[0] == '-');
+ // key.negative = (binding[0] == '-');
key.data = axis.id;
return key;
}
@@ -365,7 +365,8 @@ std::string EvdevInputSource::ConvertKeyToString(InputBindingKey key)
{
if (static_cast<u32>(axis.id) == key.data)
{
- ret = fmt::format("{}/{}{}", cd->uniq, key.negative ? "-" : "+", axis.name);
+ //ret = fmt::format("{}/{}{}", cd->uniq, key.negative ? "-" : "+", axis.name);
+ ret = fmt::format("{}/{}{}", cd->uniq, axis.name);
break;
}
}