TwMouseButton (function)
DescriptionCall this function to inform AntTweakBar that a mouse button is pressed.
AntTweakBar interprets this event and acts consequently. So If you are using SDL, GLUT, GLFW or Windows (DirectX), the library provides some helper functions to handle events. See the section how to integrate for more details. ParametersactionTells if the button is pressed or released. It is one of the TwMouseAction constants. buttonTells which button is pressed. It is one of the TwMouseButtonID constants. Return value
See also |