mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix joystickButton being used for Joystick(Dis)Connected event
This commit is contained in:
parent
b0e25088a2
commit
174448f5fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user