#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 allTaps parameter is passed as true when calling relativeModeConfig(), a single tap will be reflected here.

1

Button 2 (thought of as Right mouse button)

If allTaps and secondaryTap parameters are passed as true when calling relativeModeConfig(), a single tap in the perspective top-left-most corner will be reflected here (secondary taps are constantly disabled if isHardConfigured() returns true). Note that the top-left-most corner can be perspectively moved if rotate90 parameter is passed as true when calling relativeModeConfig().

2

Button 3 (thought of as Middle mouse or scroll wheel button)