[0.11.1] [Linux?] Clicking on large HUD with cursor mode off? [RESOLVED 0.11.2]

Locked
User avatar
pango
Posts: 2892
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

[0.11.1] [Linux?] Clicking on large HUD with cursor mode off? [RESOLVED 0.11.2]

Post by pango »

I'm experiencing some issue with the large HUD, I'm wondering if I'm the only one experiencing it...
Or maybe it hasn't been reported yet because too few people use the large HUD? Anyway:

I have the "Activate Object" action mapped to left click, but with the large HUD enabled, sometimes clicking triggers one of the large HUD buttons. It's actually easy to reproduce by first looking down, so my guess is that the "mouse cursor" can get over the large HUD and allow to click on buttons even with cursor mode off.

Maybe large HUD callbacks should check that ActiveMouseOverLargeHUD is enabled or something...
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Interkarma
Posts: 6218
Joined: Sun Mar 22, 2015 1:51 am

Re: Clicking on large HUD with cursor mode off?

Post by Interkarma »

I haven't been able to produce this one on my end. When not "activated" the cursor should be hidden and locked to centre of viewport. Perhaps runtime on Linux isn't locking cursor in same way as Windows, leaving an invisible cursor roaming around the screen.

In any case, it should be an easy fix. The large HUD is assuming the cursor is active, adding a check for that in addition to checking if cursor is over HUD should be enough.

User avatar
pango
Posts: 2892
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: [0.11.1] [Linux?] Clicking on large HUD with cursor mode off?

Post by pango »

I submitted a PR
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Interkarma
Posts: 6218
Joined: Sun Mar 22, 2015 1:51 am

Re: [0.11.1] [Linux?] Clicking on large HUD with cursor mode off?

Post by Interkarma »

Thank you so much Pango! :)

User avatar
pango
Posts: 2892
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: [0.11.1] [Linux?] Clicking on large HUD with cursor mode off?

Post by pango »

This one should be fixed in 0.11.2
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Locked