System.PenType
From Xojo Documentation
Method
This method is only available on the macOS platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform. |
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 |