mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-25 05:42:20 +00:00
Fix cursor focus for gamepads, once again, #566
hopefully it works now...
This commit is contained in:
parent
fac06f0421
commit
6310f699e1
1 changed files with 4 additions and 2 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in a new issue