Fix controller input lingering when unfocused (#210)

This commit is contained in:
Hyper
2025-01-26 20:49:13 +00:00
committed by GitHub
parent 4d41d8eaae
commit a5db997e5d
7 changed files with 89 additions and 76 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class SDLEventListenerForMessageWindow : public SDLEventListener
public:
void OnSDLEvent(SDL_Event* event) override
{
if (App::s_isInit || !MessageWindow::s_isVisible)
if (App::s_isInit || !MessageWindow::s_isVisible || !hid::IsInputAllowed())
return;
constexpr float axisValueRange = 32767.0f;