We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65de3c commit 4f0a785Copy full SHA for 4f0a785
imgui-SFML.cpp
@@ -1112,12 +1112,12 @@ void initDefaultJoystickMapping()
1112
1113
void updateJoystickButtonState(ImGuiIO& io)
1114
{
1115
- for (int i = 0; i < static_cast<int>(sf::Joystick::ButtonCount); ++i)
+ for (unsigned int i = 0; i < sf::Joystick::ButtonCount; ++i)
1116
1117
const ImGuiKey key = s_currWindowCtx->joystickMapping[i];
1118
if (key != ImGuiKey_None)
1119
1120
- const bool isPressed = sf::Joystick::isButtonPressed(s_currWindowCtx->joystickId, static_cast<unsigned>(i));
+ const bool isPressed = sf::Joystick::isButtonPressed(s_currWindowCtx->joystickId, i);
1121
if (s_currWindowCtx->windowHasFocus || !isPressed)
1122
1123
io.AddKeyEvent(key, isPressed);
0 commit comments