Page 1 of 1

on_gui_click XOR custom_input ?

Posted: Fri Nov 11, 2016 4:22 pm
by apriori
I've tried to cheat the impossibility of reacting differently to different mouse buttons.
naive cheat code
And found that these events exclude each other.
Are there any "cheats" to combine different keys? I remember that there is no straight way to find out key modifier.

And also, keys "SHIFT" and "CTRL" (alone) don't raise events. Is it normally?

Re: on_gui_click XOR custom_input ?

Posted: Sat Nov 12, 2016 10:17 pm
by aubergine18
As far as I can tell the modifier keys don't raise events on their own. As for detecting right-click, etc., on a GUI element, I don't think there's any way to do that currently (because we can't work out where the mouse is in relation to GUI). Hopefully the GUI updates that might come with 0.15 branch will yield improved GUI system.