FStylusState

The current state of a single stylus, as sent by [IStylusMessageHandler](API\Plugins\StylusInput\IStylusMessageHandler).

Windows
MacOS
Linux

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

Name Description

Public function

FStylusState()

Public function

FStylusState

(
    const FStylusState& Other
)

Public function

FStylusState

(
    FVector2D InPosition,
    float InZ,
    FVector2D InTilt,
    float InTwist,
    float InPressure,
    float InTanPressure,
    FVector2D InSize,
    bool InDown,
    bool InInverted
)

Functions

Name Description

Public function Const

FVector2D

 

GetPosition()

The current position of the stylus on (or above) the tablet.

Public function Const

float

 

GetPressure()

Get the current pressure along the tablet's normal, usually straight down.

Public function Const

FVector2D

 

GetSize()

Get the size of the touch in logical coordinates.

Public function Const

float

 

GetTangentPressure()

Get the current pressure along the tablet's surface.

Public function Const

FVector2D

 

GetTilt()

The current tilt along the X axis in degrees, normalized to the range of [-90, 90].

Public function Const

float

 

GetTwist()

The current twist amount around the stylus' own axis in degrees, normalized to the range of [0, 360).

Public function Const

float

 

GetZ()

The current height of the stylus above the tablet.

Public function Const

bool

 

IsStylusDown()

Is the stylus currently touching the tablet?

Public function Const

bool

 

IsStylusInverted()

Is the stylus inverted? Ie.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss