diff --git a/examples/common/entry/entry_sdl.cpp b/examples/common/entry/entry_sdl.cpp index 1464a298..b7f432b3 100644 --- a/examples/common/entry/entry_sdl.cpp +++ b/examples/common/entry/entry_sdl.cpp @@ -502,6 +502,7 @@ namespace entry if (isValid(handle) ) { m_gamepad[handle.idx].create(cev.which); + m_eventQueue.postGamepadEvent(defaultWindow, handle, true); } } break; @@ -520,6 +521,7 @@ namespace entry { m_gamepad[handle.idx].destroy(); m_gamepadAlloc.free(handle.idx); + m_eventQueue.postGamepadEvent(defaultWindow, handle, false); } } break;