Open 3D Engine LyShine 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.
UiCanvasInputNotifications Class Reference

#include <UiCanvasBus.h>

Inherits AZ::ComponentBus.

Public Member Functions

virtual void OnCanvasPrimaryPressed (AZ::EntityId entityId)
 
virtual void OnCanvasPrimaryReleased (AZ::EntityId entityId)
 
virtual void OnCanvasMultiTouchPressed (AZ::EntityId entityId, int multiTouchIndex)
 
virtual void OnCanvasMultiTouchReleased (AZ::EntityId entityId, int multiTouchIndex)
 
virtual void OnCanvasHoverStart (AZ::EntityId entityId)
 Called when an element starts being hovered.
 
virtual void OnCanvasHoverEnd (AZ::EntityId entityId)
 Called when an element ends being hovered.
 
virtual void OnCanvasEnterPressed (AZ::EntityId entityId)
 Called when the enter key is pressed.
 
virtual void OnCanvasEnterReleased (AZ::EntityId entityId)
 Called when the enter key is released.
 

Detailed Description

Interface class that listeners need to implement to be notified of canvas input. Note that interactables already get methods called on them when they themselves are interacted with. This notification bus is intended for other entities or Lua to know when some other entities are interacted with.

Member Function Documentation

◆ OnCanvasMultiTouchPressed()

virtual void UiCanvasInputNotifications::OnCanvasMultiTouchPressed ( AZ::EntityId  entityId,
int  multiTouchIndex 
)
inlinevirtual

Called when an element is pressed. Will be an invalid entity id if no interactable was pressed.

◆ OnCanvasMultiTouchReleased()

virtual void UiCanvasInputNotifications::OnCanvasMultiTouchReleased ( AZ::EntityId  entityId,
int  multiTouchIndex 
)
inlinevirtual

Called when an element is released. The released entity that is sent is the entity that was active (if any).

◆ OnCanvasPrimaryPressed()

virtual void UiCanvasInputNotifications::OnCanvasPrimaryPressed ( AZ::EntityId  entityId)
inlinevirtual

Called when an element is pressed. Will return an invalid entity id if no interactable was pressed.

◆ OnCanvasPrimaryReleased()

virtual void UiCanvasInputNotifications::OnCanvasPrimaryReleased ( AZ::EntityId  entityId)
inlinevirtual

Called when an element is released. The released entity that is sent is the entity that was active (if any).


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