gui_application: fix handling of hotplug events

This commit is contained in:
Sanjay Govind 2025-01-24 09:26:11 +13:00
parent a1086fe8a9
commit 47c45c0380

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 && (msg->wParam == DBT_DEVICEARRIVAL || msg->wParam == DBT_DEVICEREMOVECOMPLETE)
if (msg->message == WM_DEVICECHANGE && (msg->wParam == DBT_DEVICEARRIVAL || msg->wParam == DBT_DEVICEREMOVECOMPLETE))
{
if (Emu.IsRunning() || Emu.IsStarting())
{