mousePressed fires twice in Visual Studio 2010 #1961

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

Comments

Projects
None yet
3 participants
@underdoeg
Contributor

underdoeg commented Mar 20, 2013

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:

void ofxToggle::mousePressed(ofMouseEventArgs & args){

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

This comment has been minimized.

Show comment
Hide comment
@LeoColomb

LeoColomb Jun 20, 2013

Member

@underdoeg Is this still relevant?

Member

LeoColomb commented Jun 20, 2013

@underdoeg Is this still relevant?

@underdoeg

This comment has been minimized.

Show comment
Hide comment
@underdoeg

underdoeg Jun 20, 2013

Contributor

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

Contributor

underdoeg commented Jun 20, 2013

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

This comment has been minimized.

Show comment
Hide comment
@bilderbuchi

bilderbuchi Jun 20, 2013

Member

possibly closed by #2015?

Member

bilderbuchi commented Jun 20, 2013

possibly closed by #2015?

@LeoColomb

This comment has been minimized.

Show comment
Hide comment
@LeoColomb

LeoColomb Jun 20, 2013

Member

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

Member

LeoColomb commented Jun 20, 2013

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

@bilderbuchi

This comment has been minimized.

Show comment
Hide comment
@bilderbuchi

bilderbuchi Jun 20, 2013

Member

Thanks

Member

bilderbuchi commented Jun 20, 2013

Thanks

@LeoColomb

This comment has been minimized.

Show comment
Hide comment
@LeoColomb

LeoColomb Jun 20, 2013

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 ;-)

Member

LeoColomb commented Jun 20, 2013

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

This comment has been minimized.

Show comment
Hide comment
@bilderbuchi

bilderbuchi Jun 20, 2013

Member

Thanks. Closing this, then.

Member

bilderbuchi commented Jun 20, 2013

Thanks. Closing this, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment