cschreib / lxgui

Portable, real time, modular and data-driven GUI C++ library.
https://cschreib.github.io/lxgui
MIT License
75 stars 20 forks source link

Button click event filtering #127

Closed cschreib closed 1 year ago

cschreib commented 1 year ago

Currently, Button OnClick is triggered on mouse button down, regardless of the mouse button. It was done to improve perceived responsiveness (#102), but it has drawbacks (other events can be triggered on mouse button up, which is surprising). This should be configurable, and allow the user to select which events should trigger a OnClick (including double-click, perhaps later long press, etc.), and which mouse button (left/right/middle/etc).