Open 3D Engine BarrierInput Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <RawInputNotificationBus_Barrier.h>
Inherits AZ::EBusTraits.
Public Member Functions | |
virtual | ~RawInputNotificationsBarrier ()=default |
Default destructor. | |
virtual void | OnRawMouseButtonDownEvent ([[maybe_unused]]uint32_t buttonIndex) |
virtual void | OnRawMouseButtonUpEvent ([[maybe_unused]]uint32_t buttonIndex) |
virtual void | OnRawMouseMovementEvent ([[maybe_unused]]float movementX, [[maybe_unused]]float movementY) |
virtual void | OnRawMousePositionEvent ([[maybe_unused]]float positionX, [[maybe_unused]]float positionY) |
virtual void | OnRawKeyboardKeyDownEvent ([[maybe_unused]]uint32_t scanCode, [[maybe_unused]]ModifierMask activeModifiers) |
virtual void | OnRawKeyboardKeyUpEvent ([[maybe_unused]]uint32_t scanCode, [[maybe_unused]]ModifierMask activeModifiers) |
virtual void | OnRawKeyboardKeyRepeatEvent ([[maybe_unused]]uint32_t scanCode, [[maybe_unused]]ModifierMask activeModifiers) |
virtual void | OnRawClipboardEvent ([[maybe_unused]]const char *clipboardContents) |
Static Public Attributes | |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
EBus Trait: raw input notifications are addressed to a single address. | |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Multiple |
EBus Trait: raw input notifications can be handled by multiple listeners. | |
EBus interface used to listen for raw Barrier input as broadcast by the BarrierClient.
It's possible to receive multiple events per button/key per frame, and it's very likely that Barrier input events will not be dispatched from the main thread, so care should be taken to ensure thread safety when implementing event handlers that connect to this Barrier event bus.
This EBus is intended primarily for the BarrierClient to send raw input to Barrier devices. Most systems that need to process input should use the generic AzFramework input interfaces, but if necessary it is perfectly valid to connect directly to this EBus for Barrier events.
|
inlinevirtual |
Process raw clipboard events (assumed to be dispatched from any thread)
[in] | clipboardContents | The contents of the clipboard |
|
inlinevirtual |
Process raw keyboard key down events (assumed to be dispatched from any thread)
[in] | scanCode | The scan code of the key that was pressed down |
[in] | activeModifiers | The bit mask of currently active modifier keys |
|
inlinevirtual |
Process raw keyboard key repeat events (assumed to be dispatched from any thread)
[in] | scanCode | The scan code of the key that was repeatedly held down |
[in] | activeModifiers | The bit mask of currently active modifier keys |
|
inlinevirtual |
Process raw keyboard key up events (assumed to be dispatched from any thread)
[in] | scanCode | The scan code of the key that was released up |
[in] | activeModifiers | The bit mask of currently active modifier keys |
|
inlinevirtual |
Process raw mouse button down events (assumed to be dispatched from any thread)
[in] | buttonIndex | The index of the button that was pressed down |
|
inlinevirtual |
Process raw mouse button up events (assumed to be dispatched from any thread)
[in] | buttonIndex | The index of the button that was released up |
|
inlinevirtual |
Process raw mouse movement events (assumed to be dispatched from any thread)
[in] | movementX | The x movement of the mouse |
[in] | movementY | The y movement of the mouse |
|
inlinevirtual |
Process raw mouse position events (assumed to be dispatched from any thread)
[in] | positionX | The x position of the mouse |
[in] | positionY | The y position of the mouse |