MCPcopy Create free account
hub / github.com/diasurgical/devilution / SetCursorPos

Function SetCursorPos

SourceX/miniwin/misc_msg.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31int mouseWarpingY;
32
33void SetCursorPos(int X, int Y)
34{
35 mouseWarpingX = X;
36 mouseWarpingY = Y;
37 mouseWarping = true;
38 LogicalToOutput(&X, &Y);
39 SDL_WarpMouseInWindow(window, X, Y);
40}
41
42// Moves the mouse to the first attribute "+" button.
43void FocusOnCharInfo()

Callers 12

AttrIncBtnSnapFunction · 0.85
InvMoveFunction · 0.85
HotSpellMoveFunction · 0.85
HandleRightStickMotionFunction · 0.85
FocusOnInventoryFunction · 0.85
FocusOnCharInfoFunction · 0.85
diablo_init_screenFunction · 0.85
PressKeyFunction · 0.85
PressCharFunction · 0.85
DoSpeedBookFunction · 0.85
CheckInvPasteFunction · 0.85
CheckInvCutFunction · 0.85

Calls 2

LogicalToOutputFunction · 0.85
SDL_WarpMouseInWindowFunction · 0.85

Tested by

no test coverage detected