-
#include "CirquePinnacle.h" -
uint8_t RelativeReport::buttons = 0;
This will always be in range [0, 7].
The returned button data is a byte in which each bit represents if a button is pressed. The bit to button order is as follows:
bit position
button number
description
0 [LSB]
Button 1 (thought of as Left mouse button)
If
allTapsparameter is passed astruewhen callingrelativeModeConfig(), a single tap will be reflected here.1
Button 2 (thought of as Right mouse button)
If
allTapsandsecondaryTapparameters are passed astruewhen callingrelativeModeConfig(), a single tap in the perspective top-left-most corner will be reflected here (secondary taps are constantly disabled ifisHardConfigured()returnstrue). Note that the top-left-most corner can be perspectively moved ifrotate90parameter is passed astruewhen callingrelativeModeConfig().2
Button 3 (thought of as Middle mouse or scroll wheel button)