Collection of variables for cursor-display and -animation.
More...
#include <gfx_type.h>
|
|
bool | queued_warp |
| |
|
Point | last_position |
| |
Collection of variables for cursor-display and -animation.
Definition at line 115 of file gfx_type.h.
◆ UpdateCursorPosition()
| bool CursorVars::UpdateCursorPosition |
( |
int |
x, |
|
|
int |
y, |
|
|
bool |
queued_warp |
|
) |
| |
Update cursor position on mouse movement.
- Parameters
-
| x | New X position. |
| y | New Y position. |
| queued_warp | True, if the OS queues mouse warps after pending mouse movement events. False, if the warp applies instantaneous. |
- Returns
- true, if the OS cursor position should be warped back to this->pos.
Definition at line 1828 of file gfx.cpp.
◆ UpdateCursorPositionRelative()
| void CursorVars::UpdateCursorPositionRelative |
( |
int |
delta_x, |
|
|
int |
delta_y |
|
) |
| |
Update cursor position on mouse movement for relative modes.
- Parameters
-
| delta_x | How much change in the X position. |
| delta_y | How much change in the Y position. |
Definition at line 1801 of file gfx.cpp.
References _cur_resolution, Clamp(), delta, dirty, fix_at, and pos.
The documentation for this struct was generated from the following files: