System.PenType

From Xojo Documentation

Method


System.PenType() As Integer

New in 5.5

Supported for all project types and targets.

Returns an Integer that describes the type of pen being used (macOS only).

Notes

It is meaningful only if a graphics tablet is connected. You can use the following class constants to determine the pen type:

Class Constant Description
PenTypeNone Mouse (no graphics tablet connected)
PenTypeTip Tip end of pen device
PenTypeEraser Eraser end of pen device