summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-10-21 08:42:11 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-10-21 09:41:30 -0400
commit2f852f182a807d828985e08d0b70f1129194fbad (patch)
tree1afa3cd5d81945d081607327cef059219511099c /src/core/cpu_manager.cpp
parent1fc61d09d3f03c8a0c502e9ec41d68e3ee1eb46c (diff)
sdl_impl: Fix controller reconnection issues
It turns out that after a controller is disconnected, there is a chance that events from the previous controller are sent/processed after it has been disconnected. This causes the previously disconnected controller to reappear as connected due to GetSDLJoystickBySDLID() emplacing this controller back to the map. Fix this by only returning an SDLJoystick if and only if it exists in the map.
Diffstat (limited to 'src/core/cpu_manager.cpp')
0 files changed, 0 insertions, 0 deletions