Open 3D Engine Gestures Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Gestures::InputChannelGestureClickOrTap Class Reference

Input channel that recognizes discrete click or tap gestures. More...

#include <InputChannelGestureClickOrTap.h>

Inherits Gestures::InputChannelGesture, and Gestures::RecognizerClickOrTap.

Classes

struct  TypeAndConfig
 The gesture configuration values that are exposed to the editor. More...
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (InputChannelGestureClickOrTap, AZ::SystemAllocator)
 
 AZ_RTTI (InputChannelGestureClickOrTap, "{C9347E72-C4AE-4850-887D-36B002E2D4B2}", InputChannel)
 
 InputChannelGestureClickOrTap (const AzFramework::InputChannelId &inputChannelId, const AzFramework::InputDevice &inputDevice, const Config &config)
 
 AZ_DISABLE_COPY_MOVE (InputChannelGestureClickOrTap)
 
 ~InputChannelGestureClickOrTap () override
 Destructor.
 
- Public Member Functions inherited from Gestures::InputChannelGesture
 AZ_CLASS_ALLOCATOR (InputChannelGesture, AZ::SystemAllocator)
 
 AZ_RTTI (InputChannelGesture, "{A26F1958-7AF7-48AB-87AA-12AD76088BCA}", InputChannel)
 
 InputChannelGesture (const AzFramework::InputChannelId &inputChannelId, const AzFramework::InputDevice &inputDevice)
 
 AZ_DISABLE_COPY_MOVE (InputChannelGesture)
 
 ~InputChannelGesture () override=default
 Default destructor.
 
- Public Member Functions inherited from Gestures::RecognizerClickOrTap
 AZ_CLASS_ALLOCATOR (RecognizerClickOrTap, AZ::SystemAllocator)
 
 AZ_RTTI (RecognizerClickOrTap, "{C401A49C-6D88-4268-8E2D-6BAECFD7146E}", RecognizerDiscrete)
 
 RecognizerClickOrTap (const Config &config=GetDefaultConfig())
 
int32_t GetPriority () const override
 
bool OnPressedEvent (const AZ::Vector2 &screenPosition, uint32_t pointerIndex) override
 
bool OnDownEvent (const AZ::Vector2 &screenPosition, uint32_t pointerIndex) override
 
bool OnReleasedEvent (const AZ::Vector2 &screenPosition, uint32_t pointerIndex) override
 
ConfigGetConfig ()
 
const ConfigGetConfig () const
 
void SetConfig (const Config &config)
 
AZ::Vector2 GetStartPosition () const
 
AZ::Vector2 GetEndPosition () const
 
- Public Member Functions inherited from Gestures::RecognizerDiscrete
 AZ_CLASS_ALLOCATOR (RecognizerDiscrete, AZ::SystemAllocator)
 
 AZ_RTTI (RecognizerDiscrete, "{51258910-62B3-4830-AF7B-9DA3AD3585CC}", IRecognizer)
 
- Public Member Functions inherited from Gestures::IRecognizer
 AZ_CLASS_ALLOCATOR (IRecognizer, AZ::SystemAllocator)
 
 AZ_RTTI (IRecognizer, "{C3E00298-1953-465F-A360-EBC10B62BFE8}", CustomData)
 
void Enable ()
 Enable this gesture recognizer.
 
void Disable ()
 Disable this gesture recognizer.
 
AZ::s32 GetPriority () const override
 AzFramework::InputChannelNotifications::GetPriority
 
void OnInputChannelEvent (const AzFramework::InputChannel &inputChannel, bool &o_hasBeenConsumed) override
 AzFramework::InputChannelNotifications::OnInputChannelEvent
 
virtual bool OnPressedEvent (const AZ::Vector2 &screenPositionPixels, uint32_t pointerIndex)=0
 
virtual bool OnDownEvent (const AZ::Vector2 &screenPositionPixels, uint32_t pointerIndex)=0
 
virtual bool OnReleasedEvent (const AZ::Vector2 &screenPositionPixels, uint32_t pointerIndex)=0
 

Protected Member Functions

float GetValue () const override
 AzFramework::InputChannel::GetValue
 
const InputChannel::CustomData * GetCustomData () const override
 AzFramework::InputChannel::GetCustomData
 
void OnDiscreteGestureRecognized () override
 Gestures::RecognizerDiscrete::OnDiscreteGestureRecognized
 
virtual void OnDiscreteGestureRecognized ()=0
 Override to be notified when the discrete gesture is recognized.
 
- Protected Member Functions inherited from Gestures::IRecognizer
uint32_t GetGesturePointerIndex (const AzFramework::InputChannel &inputChannel)
 
void UpdateNormalizedPositionAndDeltaFromScreenPosition (const AZ::Vector2 &screenPositionPixels)
 

Additional Inherited Members

- Static Public Member Functions inherited from Gestures::RecognizerClickOrTap
static float GetDefaultMaxSecondsHeld ()
 
static float GetDefaultMaxPixelsMoved ()
 
static float GetDefaultMaxSecondsBetweenClicksOrTaps ()
 
static float GetDefaultMaxPixelsBetweenClicksOrTaps ()
 
static uint32_t GetDefaultMinClicksOrTaps ()
 
static uint32_t GetDefaultPointerIndex ()
 
static int32_t GetDefaultPriority ()
 
static const ConfigGetDefaultConfig ()
 
- Protected Attributes inherited from Gestures::IRecognizer
const uint32_t INVALID_GESTURE_POINTER_INDEX = static_cast<uint32_t>(-1)
 

Detailed Description

Input channel that recognizes discrete click or tap gestures.

Constructor & Destructor Documentation

◆ InputChannelGestureClickOrTap()

Gestures::InputChannelGestureClickOrTap::InputChannelGestureClickOrTap ( const AzFramework::InputChannelId &  inputChannelId,
const AzFramework::InputDevice &  inputDevice,
const Config config 
)
explicit

Constructor

Parameters
[in]inputChannelIdId of the input channel being constructed
[in]inputDeviceInput device that owns the input channel
[in]configThe configuration used to setup the gesture recognizer base class

Member Function Documentation

◆ OnDiscreteGestureRecognized()

void Gestures::InputChannelGestureClickOrTap::OnDiscreteGestureRecognized ( )
overrideprotectedvirtual

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