Page 1 of 1

[0.10.6][slpwnd] Mouse buttons not working over gui

Posted: Sat Aug 02, 2014 4:04 pm
by boro
The mouse buttons/scroll wheel still don't work when the mouse cursor is over part of the GUI. This was supposedly fixed in 10.4 (I skipped 10.4 and 10.5, don't know if it temporarily worked).

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Sat Aug 02, 2014 6:00 pm
by Rseding91
A little more information + a screenshot and code if you're referring to a mod would be very helpful.

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Sat Aug 02, 2014 6:31 pm
by boro

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Tue Aug 05, 2014 9:23 am
by kovarex
Just to be sure, the problem is, that the pickup item from ground action don't work when the mouse is over gui?

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Wed Aug 06, 2014 6:57 am
by boro
Anything binded to mouse buttons 4,5,scroll wheel doesn't work when the mouse pointer is over the gui.
I have MB4 pick up item, MB5 shoot, scroll wheel zoom in/out.

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Wed Aug 13, 2014 8:39 am
by slpwnd
The scroll will be fixed in the 0.10.7. The mouse buttons are more tricky.

The problem comes when you use the same key combination for some gui manipulation and for the game action. For instance you have mb4 for shooting but also for "shift clicking" the resources to inventory. This would mean that everytime you want to "shift click" the resources you would actually shoot instead. This is a technical problem as the gui should process the events first since it is in a "higher layer" but it is technically quite a lot of work - it would require a major rewrites in our gui library.

For now we could do a workaround that for instance mouse buttons 4 and 5 are resolved even when on top of the gui (because they are not used so often I guess). Though I am a bit afraid that this will just trigger bug reports of a kind mentioned in the previous paragraph.

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Wed Aug 13, 2014 9:36 am
by boro
I'm not a programmer but could a check "if key is also bound to interface action" solve it?

So that if mouse button is bound to interface action and game action, or only interface action it does interface action.
If only bound to game action it does game action.

Something like that :)

Re: [0.10.6] Mouse buttons still not working properly over g

Posted: Wed Aug 13, 2014 9:54 am
by slpwnd
boro wrote:I'm not a programmer but could a check "if key is also bound to interface action" solve it?

So that if mouse button is bound to interface action and game action, or only interface action it does interface action.
If only bound to game action it does game action.

Something like that :)
Maybe it is good that you are not a programmer :D This is a nice and elegant solution indeed.

Re: [0.10.6][slpwnd] Mouse buttons not working over gui

Posted: Wed Aug 27, 2014 2:36 pm
by slpwnd
The suggested solution by @boro has been implemented and so this should be fixed for the 0.10.9.

Re: [0.10.6][slpwnd] Mouse buttons not working over gui

Posted: Wed Aug 27, 2014 5:15 pm
by boro
You guys know you're awesome right? :D

Re: [0.10.6][slpwnd] Mouse buttons not working over gui

Posted: Fri Aug 29, 2014 5:00 pm
by boro
With the 0.10.9 fix it's now working for the scroll wheel to zoom in/out but nothing changed for mouse buttons 4 and 5 :(

Re: [0.10.6][slpwnd] Mouse buttons not working over gui

Posted: Tue Sep 09, 2014 10:26 pm
by boro
Another related problem is that when you draw a square for the deconstruction planner, your square gets canceled as soon as the cursor touches the gui.

Re: [0.10.6][slpwnd] Mouse buttons not working over gui

Posted: Mon Sep 15, 2014 7:48 am
by cube
If the related bug still happens in 0.10.10, then please open a new bug report for it.