summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorGravatar Morph2020-10-21 08:42:11 -0400
committerGravatar Morph2020-10-21 09:41:30 -0400
commit2f852f182a807d828985e08d0b70f1129194fbad (patch)
tree1afa3cd5d81945d081607327cef059219511099c /src/video_core/gpu_thread.cpp
parentMerge pull request #4811 from lioncash/warn-video (diff)
downloadyuzu-2f852f182a807d828985e08d0b70f1129194fbad.tar.gz
yuzu-2f852f182a807d828985e08d0b70f1129194fbad.tar.xz
yuzu-2f852f182a807d828985e08d0b70f1129194fbad.zip
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/video_core/gpu_thread.cpp')
0 files changed, 0 insertions, 0 deletions