Base class for all gesture recognizers.
More...
#include <IGestureRecognizer.h>
Inherits AzFramework::InputChannelNotificationBus::Handler, and AzFramework::InputChannel::PositionData2D.
Inherited by Gestures::RecognizerContinuous, and Gestures::RecognizerDiscrete.
|
| 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 |
|
|
const uint32_t | INVALID_GESTURE_POINTER_INDEX = static_cast<uint32_t>(-1) |
|
Base class for all gesture recognizers.
◆ GetGesturePointerIndex()
uint32_t Gestures::IRecognizer::GetGesturePointerIndex |
( |
const AzFramework::InputChannel & |
inputChannel | ) |
|
|
inlineprotected |
Get the gesture pointer index associated with an input channel.
- Parameters
-
[in] | inputChannel | The input channel to find the pointer index for. |
- Returns
- The gesture pointer index of the input channel, or INVALID_GESTURE_POINTER_INDEX.
◆ OnDownEvent()
virtual bool Gestures::IRecognizer::OnDownEvent |
( |
const AZ::Vector2 & |
screenPositionPixels, |
|
|
uint32_t |
pointerIndex |
|
) |
| |
|
pure virtual |
◆ OnPressedEvent()
virtual bool Gestures::IRecognizer::OnPressedEvent |
( |
const AZ::Vector2 & |
screenPositionPixels, |
|
|
uint32_t |
pointerIndex |
|
) |
| |
|
pure virtual |
◆ OnReleasedEvent()
virtual bool Gestures::IRecognizer::OnReleasedEvent |
( |
const AZ::Vector2 & |
screenPositionPixels, |
|
|
uint32_t |
pointerIndex |
|
) |
| |
|
pure virtual |
◆ UpdateNormalizedPositionAndDeltaFromScreenPosition()
void Gestures::IRecognizer::UpdateNormalizedPositionAndDeltaFromScreenPosition |
( |
const AZ::Vector2 & |
screenPositionPixels | ) |
|
|
inlineprotected |
Convenience function that converts back to a normalized position before calling through to the base AzFramework::InputChannel::PositionData2D::UpdateNormalizedPositionAndDelta
- Parameters
-
[in] | screenPositionPixels | The screen position (in pixels) of the input event. |
The documentation for this class was generated from the following file:
- Gems/Gestures/Code/Include/Gestures/IGestureRecognizer.h