Skip to content

mousePressed fires twice in Visual Studio 2010 #1961

Closed
underdoeg opened this Issue Mar 20, 2013 · 7 comments

3 participants

@underdoeg

I compiled the recent OF Develop Version in Visual Studio 2010 ( https://github.com/openframeworks/openFrameworks/tree/e26e7486cf766e127ad11248cf83a6d82862b7b9 )

And noticed that the ofxGui didn't work properly. ofxToggles didn't change their value on click. After some research I found out that this function got called twice: https://github.com/openframeworks/openFrameworks/blob/e26e7486cf766e127ad11248cf83a6d82862b7b9/addons/ofxGui/src/ofxToggle.cpp#L39

Didn't have the time yet to investigate further. A quick bugfix is to check if clicks are at least a few miliseconds apart.

@LeoColomb
openFrameworks member

@underdoeg Is this still relevant?

@underdoeg

Actually I am not sure. I only use OF occasionally on windows and don't have the setup I had back then to test it... But the problem might be solved with @arturoc branch that uses GLFW

@bilderbuchi
openFrameworks member

possibly closed by #2015?

@LeoColomb
openFrameworks member

Possibly. I'm going to check if yes or not.

@bilderbuchi
openFrameworks member

Thanks

@LeoColomb
openFrameworks member

It's hard to check if ofxToggle::mousePressed(...) is called too many times, nevertheless it's seems to be fixed, since the function is now bool and have an other behavior.
Conclusion: ofxGui works properly. And in the pG, it works great ;-)

@bilderbuchi
openFrameworks member

Thanks. Closing this, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.