unreal.MagicLeapTouchpadGesture

class unreal.MagicLeapTouchpadGesture

Bases: unreal.StructBase

Information about a recognized touchpad gesture.

C++ Source:

  • Plugin: MagicLeap

  • Module: MagicLeapController

  • File: TouchpadGesturesComponent.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angle (float): [Read-Write] Angle from the center of the touchpad to the finger. deprecated: Use Touchpad Gesture Events instead.

  • direction (MagicLeapTouchpadGestureDirection): [Read-Write] Direction of gesture deprecated: Use Touchpad Gesture Events instead.

  • distance (float): [Read-Write] For radial gestures, this is the absolute value of the angle. For scroll and pinch gestures, this is the absolute distance traveled in touchpad distance. The touchpad is defined as having extents of [-1.0,1.0] so this distance has a range of [0.0,2.0]. deprecated: Use Touchpad Gesture Events instead.

  • finger_gap (float): [Read-Write] Distance between the two fingers performing the gestures in touchpad distance. The touchpad is defined as having extents of [-1.0,1.0] so this distance has a range of [0.0,2.0]. deprecated: Use Touchpad Gesture Events instead.

  • hand (ControllerHand): [Read-Write] Hand on which the gesture was performed. deprecated: Hand is deprecated. Please use MotionSource instead.

  • motion_source (Name): [Read-Write] Motion source on which the gesture was performed. deprecated: Use Touchpad Gesture Events instead.

  • position_and_force (Vector): [Read-Write] Gesture position (x,y) and force (z). Position is in the [-1.0,1.0] range and force is in the [0.0,1.0] range. deprecated: Use Touchpad Gesture Events instead.

  • radius (float): [Read-Write] For radial gestures, this is the radius of the gesture. The touchpad is defined as having extents of [-1.0,1.0] so this radius has a range of [0.0,2.0]. deprecated: Use Touchpad Gesture Events instead.

  • speed (float): [Read-Write] Speed of gesture. Note that this takes on different meanings depending on the gesture type being performed: - For radial gestures, this will be the angular speed around the axis. - For pinch gestures, this will be the speed at which the distance between fingers is changing. The touchpad is defined as having extents of [-1.0,1.0] so touchpad distance has a range of [0.0,2.0]; this value will be in touchpad distance per second. deprecated: Use Touchpad Gesture Events instead.

  • type (MagicLeapTouchpadGestureType): [Read-Write] Type of gesture. deprecated: Use Touchpad Gesture Events instead.

property angle

[Read-Only] Angle from the center of the touchpad to the finger. deprecated: Use Touchpad Gesture Events instead.

Type

(float)

property direction

[Read-Only] Direction of gesture deprecated: Use Touchpad Gesture Events instead.

Type

(MagicLeapTouchpadGestureDirection)

property distance

[Read-Only] For radial gestures, this is the absolute value of the angle. For scroll and pinch gestures, this is the absolute distance traveled in touchpad distance. The touchpad is defined as having extents of [-1.0,1.0] so this distance has a range of [0.0,2.0]. deprecated: Use Touchpad Gesture Events instead.

Type

(float)

property finger_gap

[Read-Only] Distance between the two fingers performing the gestures in touchpad distance. The touchpad is defined as having extents of [-1.0,1.0] so this distance has a range of [0.0,2.0]. deprecated: Use Touchpad Gesture Events instead.

Type

(float)

property hand

[Read-Only] Hand on which the gesture was performed. deprecated: Hand is deprecated. Please use MotionSource instead.

Type

(ControllerHand)

property motion_source

[Read-Only] Motion source on which the gesture was performed. deprecated: Use Touchpad Gesture Events instead.

Type

(Name)

property position_and_force

[Read-Only] Gesture position (x,y) and force (z). Position is in the [-1.0,1.0] range and force is in the [0.0,1.0] range. deprecated: Use Touchpad Gesture Events instead.

Type

(Vector)

property radius

[Read-Only] For radial gestures, this is the radius of the gesture. The touchpad is defined as having extents of [-1.0,1.0] so this radius has a range of [0.0,2.0]. deprecated: Use Touchpad Gesture Events instead.

Type

(float)

property speed

[Read-Only] Speed of gesture. Note that this takes on different meanings depending on the gesture type being performed: - For radial gestures, this will be the angular speed around the axis. - For pinch gestures, this will be the speed at which the distance between fingers is changing. The touchpad is defined as having extents of [-1.0,1.0] so touchpad distance has a range of [0.0,2.0]; this value will be in touchpad distance per second. deprecated: Use Touchpad Gesture Events instead.

Type

(float)

property type

[Read-Only] Type of gesture. deprecated: Use Touchpad Gesture Events instead.

Type

(MagicLeapTouchpadGestureType)