-
#include "CirquePinnacle.h" -
void PinnacleTouch::read(RelativeReport *report, bool readButtons = true);
This function will fetch touch (and button) event data from the Pinnacle ASIC. This function only applies to
PINNACLE_RELATIVEmode, otherwise ifsetDataMode()is givenPINNACLE_ANYMEASorPINNACLE_ABSOLUTE, then this function does nothing.- Parameters:¶
- out
- RelativeReport *report¶
A reference pointer (declared variable of datatype
RelativeReport) for storing the data that describes the touch (and button) event.- bool readButtons = true¶
A flag that can be used to skip reading the button data from the Pinnacle. The default (
true) will read the button data and store it in thereportobject’sbuttonsattribute. This parameter is useful to speed up read operations when not using the Pinnacle’s button input pins.Warning
If relative mode’s tap detection is enabled, then setting this parameter to
falsecan yield deceptively inaccurate data when reporting tap gestures.