mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +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 event;
|
||||||
event.type = connected ? Event::JoystickConnected : Event::JoystickDisconnected;
|
event.type = connected ? Event::JoystickConnected : Event::JoystickDisconnected;
|
||||||
event.joystickButton.joystickId = i;
|
event.joystickConnect.joystickId = i;
|
||||||
pushEvent(event);
|
pushEvent(event);
|
||||||
|
|
||||||
// Clear previous axes positions
|
// Clear previous axes positions
|
||||||
|
Loading…
Reference in New Issue
Block a user