Open 3D Engine AzFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzFramework::CursorState Struct Reference

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 &currentPosition)
 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 ()
 

Detailed Description

Utility type to wrap a current and last cursor position.

Member Function Documentation

◆ Update()

void AzFramework::CursorState::Update ( )
inline

Call this in an 'update' call to copy the current cursor position to the last cursor position.


The documentation for this struct was generated from the following file: