SWidget::OnTouchGesture

TOUCH and GESTURES Called when the user performs a gesture on trackpad. This event is bubbled.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

virtual FReply OnTouchGesture
(
    const FGeometry & MyGeometry,
    const FPointerEvent & GestureEvent
)

Remarks

TOUCH and GESTURES Called when the user performs a gesture on trackpad. This event is bubbled.

Returns

Returns whether the event was handled, along with other possible actions

Parameters

Parameter

Description

GestureEvent

gesture event