Choose your operating system:
Windows
macOS
Linux
| SWidget::OnMotionDetected()
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/SViewport.h |
Include |
#include "Widgets/SViewport.h" |
Source |
/Engine/Source/Runtime/Slate/Private/Widgets/SViewport.cpp |
virtual FReply OnMotionDetected
(
const FGeometry & MyGeometry,
const FMotionEvent & InMotionEvent
)
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.
Parameter |
Description |
---|---|
InMotionEvent |
The motion event generated |