Fix cursor focus for gamepads, once again, #566

hopefully it works now...
This commit is contained in:
Daniel Gibson 2024-03-20 18:31:28 +01:00
parent fac06f0421
commit 6310f699e1

View file

@ -587,8 +587,10 @@ const char *idUserInterfaceLocal::Activate(bool activate, int _time) {
time = _time;
active = activate;
if ( desktop ) {
// DG: added this hack for gamepad input
if ( interactive ) {
// DG: added this hack for gamepad input - Note that it can happen that
// a UI has been made non-interactive before Activate(false, ..) is called
// and it still needs to be unregistered with Sys_SetInteractiveIngameGuiActive()!
if ( interactive || !activate ) {
Sys_SetInteractiveIngameGuiActive( activate, this );
} // DG end
activateStr = "";