Enum PenButton
Enumeration of buttons on a Pen.
Namespace: UnityEngine.InputSystem
Syntax
public enum PenButton
Fields
Name | Description | Value |
---|---|---|
Tip | Button at the tip of a pen. |
0 |
Eraser | Button located end of pen opposite to Tip. Pens do not necessarily have an eraser. If a pen doesn't, the respective button does nothing and will always be unpressed. |
1 |
Barrel1 | Synonym for BarrelFirst. |
2 |
BarrelFirst | First button on the side of the pen. |
2 |
Barrel2 | Synonym for BarrelSecond. |
3 |
BarrelSecond | Second button on the side of the pen. |
3 |
InRange | Artificial button that indicates whether the pen is in detection range or not. Range detection may not be supported by a pen/tablet. |
4 |
Barrel3 | Synonym for BarrelThird. |
5 |
BarrelThird | Third button on the side of the pen. |
5 |
Barrel4 | Synonym for BarrelFourth. |
6 |
BarrelFourth | Fourth button on the side of the pen. |
6 |