Open 3D Engine AzFramework API Reference 24.09.2
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Utility type to wrap a current and last cursor position. More...
#include <CursorState.h>
Public Member Functions | |
ScreenVector | CursorDelta () const |
Returns the delta between the current and last cursor position. | |
void | SetCurrentPosition (const ScreenPoint ¤tPosition) |
Call this in a 'handle event' call to update the most recent cursor position. | |
void | SetCaptured (bool captured) |
Set whether the cursor is currently being constrained (and hidden). | |
void | Update () |
Utility type to wrap a current and last cursor position.
|
inline |
Call this in an 'update' call to copy the current cursor position to the last cursor position.