A camera input to handle discrete events that can translate the camera (translate in three axes). More...
#include <CameraInput.h>
Inherits AzFramework::CameraInput.
Public Member Functions | |
| TranslateCameraInput (const TranslateCameraInputChannelIds &translateCameraInputChannelIds, TranslationAxesFn translationAxesFn, TranslationDeltaFn translateDeltaFn) | |
| bool | HandleEvents (const InputState &state, const ScreenVector &cursorDelta, float scrollDelta) override |
| Respond to input events to transition a camera input to active, handle input while running, and restore to idle when input ends. | |
| Camera | StepCamera (const Camera &targetCamera, const ScreenVector &cursorDelta, float scrollDelta, float deltaTime) override |
| void | ResetImpl () override |
| Handle any state reset that may be required for the camera input (optional). | |
| void | SetTranslateCameraInputChannelIds (const TranslateCameraInputChannelIds &translateCameraInputChannelIds) |
| bool | Boosting () const |
Public Member Functions inherited from AzFramework::CameraInput | |
| bool | Beginning () const |
| bool | Ending () const |
| bool | Idle () const |
| bool | Active () const |
| void | BeginActivation () |
| void | EndActivation () |
| void | CancelActivation () |
| void | ContinueActivation () |
| void | ClearActivation () |
| void | Reset () |
| virtual bool | Exclusive () const |
| void | SetActivationBeganFn (ActivateChangeFn activationBeganFn) |
| void | SetActivationEndedFn (ActivateChangeFn activationEndedFn) |
Public Attributes | |
| AZStd::function< float()> | m_translateSpeedFn |
| AZStd::function< float()> | m_boostMultiplierFn |
Additional Inherited Members | |
Public Types inherited from AzFramework::CameraInput | |
| enum class | Activation { Idle , Beginning , Active , Ending } |
| using | ActivateChangeFn = AZStd::function< void()> |
A camera input to handle discrete events that can translate the camera (translate in three axes).
|
overridevirtual |
Respond to input events to transition a camera input to active, handle input while running, and restore to idle when input ends.
Implements AzFramework::CameraInput.
|
overridevirtual |
Handle any state reset that may be required for the camera input (optional).
Reimplemented from AzFramework::CameraInput.
|
overridevirtual |
Use processed input events to update the state of the camera.
Implements AzFramework::CameraInput.