Navigation
API > API/Plugins > API/Plugins/StylusInput
References
| Module | StylusInput |
| Header | /Engine/Plugins/Editor/StylusInput/Source/StylusInput/Public/IStylusState.h |
| Include | #include "IStylusState.h" |
Syntax
class FStylusState
Remarks
The current state of a single stylus, as sent by IStylusMessageHandler.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FStylusState () |
|||
FStylusState
(
FVector2D InPosition, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | GetPosition () |
The current position of the stylus on (or above) the tablet. | |
| float | GetPressure () |
Get the current pressure along the tablet's normal, usually straight down. | |
| FVector2D | GetSize () |
Get the size of the touch in logical coordinates. | |
| float | Get the current pressure along the tablet's surface. | ||
| FVector2D | GetTilt () |
The current tilt along the X axis in degrees, normalized to the range of [-90, 90]. | |
| float | GetTwist () |
The current twist amount around the stylus' own axis in degrees, normalized to the range of [0, 360). | |
| float | GetZ () |
The current height of the stylus above the tablet. | |
| bool | IsStylusDown () |
Is the stylus currently touching the tablet? | |
| bool | Is the stylus inverted? Ie. |