#include <InputMappingOr.h>
Inherits AzFramework::InputMapping.
Classes | |
| class | Config |
| The input mapping configuration values that are exposed to the editor. More... | |
Public Member Functions | |
| AZ_CLASS_ALLOCATOR (InputMappingOr, AZ::SystemAllocator) | |
| AZ_RTTI (InputMappingOr, "{521D2450-2877-4F9F-A320-9989A4F3E781}", InputMapping) | |
| InputMappingOr (const InputChannelId &inputChannelId, const InputContext &inputContext) | |
| AZ_DISABLE_COPY_MOVE (InputMappingOr) | |
| ~InputMappingOr () override=default | |
| Default Destructor. | |
| bool | AddSourceInput (const InputChannelId &inputSourceId) |
| bool | RemoveSourceInput (const InputChannelId &inputSourceId) |
| float | GetValue () const override |
| float | GetDelta () const override |
| void | ResetState () override |
| AzFramework::InputChannelRequests::ResetState | |
Public Member Functions inherited from AzFramework::InputMapping | |
| AZ_CLASS_ALLOCATOR (InputMapping, AZ::SystemAllocator) | |
| AZ_RTTI (InputMapping, "{37CA842F-F6E4-47CD-947A-C9B82A2A4DA2}", InputChannel) | |
| InputMapping (const InputChannelId &inputChannelId, const InputContext &inputContext) | |
| AZ_DISABLE_COPY_MOVE (InputMapping) | |
| ~InputMapping () override=default | |
| Default Destructor. | |
| bool | ProcessPotentialSourceInputEvent (const InputChannel &inputChannel) |
| virtual void | OnTick () |
| Tick/update the input mapping. | |
Public Member Functions inherited from AzFramework::InputChannel | |
| AZ_CLASS_ALLOCATOR (InputChannel, AZ::SystemAllocator) | |
| AZ_RTTI (InputChannel, "{1C88625D-D297-4A1C-AE07-E17F88D138F3}") | |
| InputChannel (const InputChannelId &inputChannelId, const InputDevice &inputDevice) | |
| AZ_DISABLE_COPY_MOVE (InputChannel) | |
| ~InputChannel () override | |
| Destructor. | |
| const InputChannel * | GetInputChannel () const final |
| AzFramework::InputChannelRequests::GetInputChannel | |
| const InputChannelId & | GetInputChannelId () const |
| const InputDevice & | GetInputDevice () const |
| State | GetState () const |
| bool | IsActive () const |
| virtual const CustomData * | GetCustomData () const |
| template<class CustomDataType > | |
| const CustomDataType * | GetCustomData () const |
| bool | UpdateState (bool isChannelActive) |
| void | ResetState () override |
| AzFramework::InputChannelRequests::ResetState | |
| bool | IsStateIdle () const |
| bool | IsStateBegan () const |
| bool | IsStateUpdated () const |
| bool | IsStateEnded () const |
Protected Member Functions | |
| bool | IsSourceInput (const InputChannel &inputChannel) override |
| AzFramework::InputMapping::IsSourceInput | |
| bool | OnSourceInputEvent (const InputChannel &inputChannel) override |
| AzFramework::InputMapping::OnSourceInputEvent | |
Additional Inherited Members | |
Public Types inherited from AzFramework::InputChannel | |
| enum class | State { Idle , Began , Updated , Ended } |
| State of the input channel (not all channels will go through all states) More... | |
| using | SharedPositionData2D = AZStd::shared_ptr< InputChannel::PositionData2D > |
| Alias for verbose shared_ptr class. | |
Static Public Member Functions inherited from AzFramework::InputChannel | |
| static void | Reflect (AZ::ReflectContext *context) |
Protected Types inherited from AzFramework::InputMapping | |
| using | SourceInputChannelIds = AZStd::unordered_set< InputChannelId > |
| using | ActiveInputChannelIds = AZStd::unordered_map< InputChannelId, InputDeviceId > |
Class that maps multiple different sources to a single output using 'OR' logic. Example: "gamepad_button_a" OR "keyboard_key_edit_space" -> "gameplay_jump"
| AzFramework::InputMappingOr::InputMappingOr | ( | const InputChannelId & | inputChannelId, |
| const InputContext & | inputContext | ||
| ) |
Constructor
| [in] | inputChannelId | Id of the input mapping |
| [in] | inputContext | Input context that owns the input mapping |
| bool AzFramework::InputMappingOr::AddSourceInput | ( | const InputChannelId & | inputSourceId | ) |
Add an input source to this input mapping
| [in] | inputSourceId | The id of the input source to add to this input mapping |
|
overridevirtual |
Access to the delta of the source input channel currently activating this input mapping
Reimplemented from AzFramework::InputChannel.
|
overridevirtual |
Access to the value of the source input channel currently activating this input mapping
Reimplemented from AzFramework::InputChannel.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| bool AzFramework::InputMappingOr::RemoveSourceInput | ( | const InputChannelId & | inputSourceId | ) |
Remove an input source from this input mapping
| [in] | inputSourceId | The id of the input source to remove from this input mapping |