-
#include "CirquePinnacle.h"
-
void PinnacleTouch::read(AbsoluteReport *report, bool readButtons = true);
This function will fetch touch (and button) event data from the Pinnacle ASIC (including empty packets on ending of a touch/button event). This function only applies to
PINNACLE_ABSOLUTE
mode, otherwise ifsetDataMode()
is givenPINNACLE_ANYMEAS
orPINNACLE_RELATIVE
, then this function does nothing.- Parameters:¶
- out
- AbsoluteReport *report¶
A reference pointer (declared variable of datatype
AbsoluteReport
) 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 thereport
object’sbuttons
attribute. This parameter is useful to speed up read operations when not using the Pinnacle’s button input pins.