Skip to content

Commit 5707977

Browse files
committed
XInputSource: Fix inverted motors in ConvertKeyToString()
Don't think this had any real negative effects except swapping the order in the list.
1 parent 5d46cca commit 5707977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/xinput_source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ TinyString XInputSource::ConvertKeyToString(InputBindingKey key)
342342
}
343343
else if (key.source_subtype == InputSubclass::ControllerMotor)
344344
{
345-
ret.format("XInput-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
345+
ret.format("XInput-{}/{}Motor", static_cast<u32>(key.source_index), (key.data == 0) ? "Large" : "Small");
346346
}
347347
}
348348

0 commit comments

Comments
 (0)