#include <CameraInput.h>
Inherits AzFramework::CameraInput.
Public Types | |
using | PivotFn = AZStd::function< AZStd::optional< AZ::Vector3 >()> |
Public Types inherited from AzFramework::CameraInput | |
enum class | Activation { Idle , Beginning , Active , Ending } |
using | ActivateChangeFn = AZStd::function< void()> |
Public Member Functions | |
FocusCameraInput (const InputChannelId &focusChannelId, FocusOffsetFn offsetFn) | |
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 | SetPivotFn (PivotFn pivotFn) |
Override the default behavior for how a pivot point is calculated. | |
void | SetFocusInputChannelId (const InputChannelId &focusChannelId) |
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 | HandleEvents (const InputState &state, const ScreenVector &cursorDelta, float scrollDelta)=0 |
Respond to input events to transition a camera input to active, handle input while running, and restore to idle when input ends. | |
virtual Camera | StepCamera (const Camera &targetCamera, const ScreenVector &cursorDelta, float scrollDelta, float deltaTime)=0 |
virtual bool | Exclusive () const |
void | SetActivationBeganFn (ActivateChangeFn activationBeganFn) |
void | SetActivationEndedFn (ActivateChangeFn activationEndedFn) |
Additional Inherited Members | |
Protected Member Functions inherited from AzFramework::CameraInput | |
virtual void | ResetImpl () |
Handle any state reset that may be required for the camera input (optional). | |
A focus behavior to align the camera view to the position returned by the pivot function.
|
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 |
Use processed input events to update the state of the camera.
Implements AzFramework::CameraInput.