Mouse button ID: where is it?

I’m trying to use mouse input but having trouble finding documentation. A big help would be to announce where-the-heck is documentation about some things like button info.

For example, how do I identify the button parameter in functions like mousePressed() to resolve left versus right button presses?

Thanks

It’s here:

https://openframeworks.cc/documentation/application/ofBaseApp/#show_mousePressed

mousePressed(...)void ofBaseApp::mousePressed(int x, int y, int button)
This function gets called when the mouse is pushed down. The button (left 0, center 1, right 2) is passed in, along with the x and y coordinate.
1 Like

@ayruos – Thanks for the information. I had seen an earlier reference to ofConstants.h but got lost in the maze. This location is much better.