kPrimaryStylusButton top-level constant

int const kPrimaryStylusButton

The bit of PointerEvent.buttons that corresponds to the primary stylus button.

The primary stylus button is typically the top of the stylus and near the tip but can be reconfigured to be a different physical button.

See also:

  • kSecondaryButton, which has the same value but describes its cross-device concept.

Implementation

const int kPrimaryStylusButton = kSecondaryButton;