Report used keys in on_gui_click event.
Posted: Thu Mar 16, 2017 8:08 am
It would be much easier to make vanilla-like GUIs if the buttons used to do the clicking in on_gui_click events were available, as currently all buttons and modifiers are the same.
This could be a simple "control"-like string
or preferably a table for easier processing:
Because the event still fires for all clicks old mods would still work as before ensuring a smooth transition.
This could be a simple "control"-like string
Code: Select all
event.control = "Shift + Right mouse button"
Code: Select all
event.buttons = {
left = false,
right = true,
ctrl = false,
shift = true,
alt = false,
}