UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMotionEvent Struct Reference

#include <Events.h>

+ Inheritance diagram for FMotionEvent:

Public Member Functions

 FMotionEvent ()
 
 FMotionEvent (uint32 InUserIndex, const FVector &InTilt, const FVector &InRotationRate, const FVector &InGravity, const FVector &InAcceleration)
 
 FMotionEvent (const FInputDeviceId InDeviceId, const FVector &InTilt, const FVector &InRotationRate, const FVector &InGravity, const FVector &InAcceleration)
 
const FVectorGetTilt () const
 
const FVectorGetRotationRate () const
 
const FVectorGetGravity () const
 
const FVectorGetAcceleration () const
 
- Public Member Functions inherited from FInputEvent
 FInputEvent ()
 
 FInputEvent (const FModifierKeysState &InModifierKeys, const int32 InUserIndex, const bool bInIsRepeat)
 
 FInputEvent (const FModifierKeysState &InModifierKeys, const FInputDeviceId InDeviceId, const bool bInIsRepeat)
 
virtual SLATECORE_API ~FInputEvent ()
 
bool IsRepeat () const
 
bool IsShiftDown () const
 
bool IsLeftShiftDown () const
 
bool IsRightShiftDown () const
 
bool IsControlDown () const
 
bool IsLeftControlDown () const
 
bool IsRightControlDown () const
 
bool IsAltDown () const
 
bool IsLeftAltDown () const
 
bool IsRightAltDown () const
 
bool IsCommandDown () const
 
bool IsLeftCommandDown () const
 
bool IsRightCommandDown () const
 
bool AreCapsLocked () const
 
const FModifierKeysStateGetModifierKeys () const
 
uint32 GetUserIndex () const
 
FInputDeviceId GetInputDeviceId () const
 
FPlatformUserId GetPlatformUserId () const
 
uint64 GetEventTimestamp () const
 
double GetMillisecondsSinceEvent () const
 
SLATECORE_API FGeometry FindGeometry (const TSharedRef< SWidget > &WidgetToFind) const
 
SLATECORE_API TSharedRef< SWindowGetWindow () const
 
void SetEventPath (const FWidgetPath &InEventPath)
 
const FWidgetPathGetEventPath () const
 
virtual SLATECORE_API FText ToText () const
 
virtual SLATECORE_API bool IsPointerEvent () const
 
virtual SLATECORE_API bool IsKeyEvent () const
 

Additional Inherited Members

- Protected Attributes inherited from FInputEvent
FModifierKeysState ModifierKeys
 
bool bIsRepeat
 
uint32 UserIndex
 
FInputDeviceId InputDeviceId
 
const FWidgetPathEventPath
 
uint64 EventTimestamp
 

Detailed Description

FMotionEvent describes a touch pad action (press, move, lift) It is passed to event handlers dealing with touch input.

Constructor & Destructor Documentation

◆ FMotionEvent() [1/3]

FMotionEvent::FMotionEvent ( )
inline

UStruct Constructor. Not meant for normal usage.

◆ FMotionEvent() [2/3]

FMotionEvent::FMotionEvent ( uint32  InUserIndex,
const FVector InTilt,
const FVector InRotationRate,
const FVector InGravity,
const FVector InAcceleration 
)
inline

◆ FMotionEvent() [3/3]

FMotionEvent::FMotionEvent ( const FInputDeviceId  InDeviceId,
const FVector InTilt,
const FVector InRotationRate,
const FVector InGravity,
const FVector InAcceleration 
)
inline

Member Function Documentation

◆ GetAcceleration()

const FVector & FMotionEvent::GetAcceleration ( ) const
inline

Returns the 3D acceleration of the device

◆ GetGravity()

const FVector & FMotionEvent::GetGravity ( ) const
inline

Returns the gravity vector (pointing down into the ground)

◆ GetRotationRate()

const FVector & FMotionEvent::GetRotationRate ( ) const
inline

Returns otation speed

◆ GetTilt()

const FVector & FMotionEvent::GetTilt ( ) const
inline

Returns the current tilt of the device/controller


The documentation for this struct was generated from the following file: