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.