Update rpcs3/rpcs3qt/gui_application.cpp

Co-authored-by: Megamouse <studienricky89@googlemail.com>
This commit is contained in:
Sanjay Govind 2025-01-24 09:25:31 +13:00 committed by GitHub
parent 7eda6515d0
commit a1086fe8a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1210,7 +1210,7 @@ bool gui_application::native_event_filter::nativeEventFilter([[maybe_unused]] co
{
if (MSG* msg = static_cast<MSG*>(message); msg && (msg->message == WM_INPUT || msg->message == WM_KEYDOWN || msg->message == WM_KEYUP || msg->message == WM_DEVICECHANGE))
{
if (msg->message == WM_DEVICECHANGE)
if (msg->message == WM_DEVICECHANGE && (msg->wParam == DBT_DEVICEARRIVAL || msg->wParam == DBT_DEVICEREMOVECOMPLETE)
{
if (Emu.IsRunning() || Emu.IsStarting())
{