Detailed Description
Use this API to determine how many buttons are on a tracker target and determine the button state.
Function Descriptions
| ZSError zsGetNumTargetButtons |
( |
ZSHandle |
targetHandle, |
|
|
ZSInt32* |
numButtons |
|
) |
|
|
Gets the number of buttons on the tracker target.
- Parameters:
-
| [in] |
targetHandle |
A handle to the tracker target. |
| [out] |
numButtons |
The number of buttons on the tracker target. |
| ZSError zsIsTargetButtonPressed |
( |
ZSHandle |
targetHandle, |
|
|
ZSInt32 |
buttonId, |
|
|
ZSBool* |
isButtonPressed |
|
) |
|
|
Checks whether the specified button on the tracker target is pressed.
- Parameters:
-
| [in] |
targetHandle |
A handle to the tracker target. |
| [in] |
buttonId |
The button number to check. |
| [out] |
isButtonPressed |
True if pressed, false otherwise. |