Skip to content

Commit 5d46cca

Browse files
committed
XInputSource: Add missing break in GetCurrentValue()
1 parent 6464faf commit 5d46cca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/xinput_source.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ std::optional<float> XInputSource::GetCurrentValue(InputBindingKey key)
547547
const XINPUT_GAMEPAD& state = cd.last_state.Gamepad;
548548
#define CHECK_AXIS(field, axis, min_value, max_value) \
549549
case axis: \
550-
ret = static_cast<float>(state.field) / ((state.field < 0) ? min_value : max_value);
550+
ret = static_cast<float>(state.field) / ((state.field < 0) ? min_value : max_value); \
551+
break;
551552

552553
// Y axes is inverted in XInput when compared to SDL.
553554
switch (key.data)

0 commit comments

Comments
 (0)