Target Button API module
Contents
- Reference
Use this API to determine how many buttons are on a tracker target and determine the button state.
Functions
- auto zcGetNumTargetButtons(ZCHandle targetHandle, ZSInt32* numButtons) -> ZCError
- auto zcIsTargetButtonPressed(ZCHandle targetHandle, ZSInt32 buttonId, ZSBool* isButtonPressed) -> ZCError
Function documentation
ZCError zcGetNumTargetButtons(ZCHandle targetHandle, ZSInt32* numButtons)
| Parameters | |
|---|---|
| targetHandle in | A handle to the tracker target. |
| numButtons out | The number of buttons on the tracker target. |
Gets the number of buttons on the tracker target.
ZCError zcIsTargetButtonPressed(ZCHandle targetHandle, ZSInt32 buttonId, ZSBool* isButtonPressed)
| Parameters | |
|---|---|
| targetHandle in | A handle to the tracker target. |
| buttonId in | The button number to check. |
| isButtonPressed out | True if pressed, false otherwise. |
Checks whether the specified button on the tracker target is pressed.