braitsch / ofxDatGui

Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks

Home Page:https://braitsch.github.io/ofxDatGui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why onButtonEvent detects the realease of the click button and not the initial click?

moebiussurfing opened this issue · comments

there is some way to detect the mouse click like this? I am doing something bad??

The mouse event handling code is designed to fire the onButtonEvent callback when the mouse is released. Your not doing anything wrong :) if you want different behavior you can probably subclass the button and overload the onMousePressed method.