Navigation
API > API/Plugins > API/Plugins/StylusInput
The types of stylus inputs that can be potentially supported by a stylus. The current state of a single stylus, as sent by IStylusMessageHandler.
| Name | FStylusState |
| Type | class |
| Header File | /Engine/Plugins/Editor/StylusInput/Source/StylusInput/Public/IStylusState.h |
| Include Path | #include "IStylusState.h" |
Syntax
class FStylusState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FStylusState () |
IStylusState.h | ||
FStylusState
(
FVector2D InPosition, |
IStylusState.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| IsDown | bool | IStylusState.h | ||
| IsInverted | bool | IStylusState.h | ||
| Position | FVector2D | IStylusState.h | ||
| Pressure | float | IStylusState.h | ||
| Size | FVector2D | IStylusState.h | ||
| TangentPressure | float | IStylusState.h | ||
| Tilt | FVector2D | IStylusState.h | ||
| Twist | float | IStylusState.h | ||
| Z | float | IStylusState.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector2D GetPosition () |
The current position of the stylus on (or above) the tablet. | IStylusState.h | |
float GetPressure () |
Get the current pressure along the tablet's normal, usually straight down. | IStylusState.h | |
FVector2D GetSize () |
Get the size of the touch in logical coordinates. | IStylusState.h | |
float GetTangentPressure () |
Get the current pressure along the tablet's surface. | IStylusState.h | |
FVector2D GetTilt () |
The current tilt along the X axis in degrees, normalized to the range of [-90, 90]. | IStylusState.h | |
float GetTwist () |
The current twist amount around the stylus' own axis in degrees, normalized to the range of [0, 360). | IStylusState.h | |
float GetZ () |
The current height of the stylus above the tablet. | IStylusState.h | |
bool IsStylusDown() |
Is the stylus currently touching the tablet? | IStylusState.h | |
bool IsStylusInverted () |
Is the stylus inverted? Ie. | IStylusState.h |