ControllerInterface: Don't fire events when fullscreen UI active

This commit is contained in:
Connor McLaughlin
2021-05-13 13:58:57 +10:00
parent 00ffffe8c0
commit a6d2324f0e
5 changed files with 33 additions and 13 deletions

View File

@ -703,8 +703,12 @@ bool SDLControllerInterface::HandleControllerButtonEvent(const SDL_ControllerBut
return true;
if (ev->button < nav_button_mapping.size() &&
nav_button_mapping[ev->button] != FrontendCommon::ControllerNavigationButton::Count &&
m_host_interface->SetControllerNavigationButtonState(nav_button_mapping[ev->button], pressed))
nav_button_mapping[ev->button] != FrontendCommon::ControllerNavigationButton::Count)
{
m_host_interface->SetControllerNavigationButtonState(nav_button_mapping[ev->button], pressed);
}
if (m_host_interface->IsControllerNavigationActive())
{
// UI consumed the event
return true;