diff --git a/src/SFML/Window/WindowImpl.cpp b/src/SFML/Window/WindowImpl.cpp index d1e224dd3..9617c8fb0 100644 --- a/src/SFML/Window/WindowImpl.cpp +++ b/src/SFML/Window/WindowImpl.cpp @@ -200,7 +200,7 @@ void WindowImpl::processJoystickEvents() { Event event; event.type = connected ? Event::JoystickConnected : Event::JoystickDisconnected; - event.joystickButton.joystickId = i; + event.joystickConnect.joystickId = i; pushEvent(event); // Clear previous axes positions