System.PenButtonPushed

From Xojo Documentation

Method


System.PenButtonPushed(Index as Integer) As Boolean

New in 5.5

Supported for all project types and targets.

Returns a Boolean indicating whether the button passed as Index is currently pushed (macOS only).