Q3Tracker_ChangeButtons
You can use theQ3Tracker_ChangeButtonsfunction to change the button state of a tracker.
TQ3Status Q3Tracker_ChangeButtons ( TQ3TrackerObject trackerObject, TQ3ControllerRef controllerRef, unsigned long buttons, unsigned long buttonMask);
trackerObject- A tracker object.
controllerRef- A reference to a controller.
buttons- The desired button state value of the specified tracker.
buttonMask- A button mask.
DESCRIPTION
TheQ3Tracker_ChangeButtonsfunction sets the button state of the tracker specified by thetrackerObjectparameter to the value specified in thebuttonsparameter. ThebuttonMaskparameter specifies a button mask for the tracker. A bit in the mask should be set if the corresponding button has changed since the last call toQ3Tracker_ChangeButtons.The notify function of the specified tracker object may be called when the
Q3Tracker_ChangeButtonsfunction is executed. If, however, the tracker is inactive whenQ3Tracker_ChangeButtonsis called, the tracker's activation count for the buttons is updated but the notify function is not called.
- Note
- The
controllerRefparameter is used only by the tracker's notify function.![]()