FStylusState::GetTilt

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

Windows
MacOS
Linux

References

Module

StylusInput

Header

/Engine/Plugins/Editor/StylusInput/Source/StylusInput/Public/IStylusState.h

Include

#include "IStylusState.h"

Syntax

FVector2D GetTilt() const

Remarks

The current tilt along the X axis in degrees, normalized to the range of [-90, 90]. Defaults to (0,0) if EStylusInputType::Tilt is not supported. A value of (0,0) means that the stylus is perfectly vertical. A positive X value means that the stylus is tilted to the right. A positive Y value means that the stylus is tilted forwards, away from the user. A value of -90 or 90 means that the pen is lying on the tablet, though in practice this isn't widely supported.

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