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

Function FocusOnInventory

SourceX/controls/plrctrls.cpp:910–913  ·  view source on GitHub ↗

* @brief Moves the mouse to the first inventory slot. */

Source from the content-addressed store, hash-verified

908 * @brief Moves the mouse to the first inventory slot.
909 */
910void FocusOnInventory()
911{
912 SetCursorPos(InvRect[25].X + (INV_SLOT_SIZE_PX / 2), InvRect[25].Y - (INV_SLOT_SIZE_PX / 2));
913}
914
915void plrctrls_after_check_curs_move()
916{

Callers 4

PeekMessageAFunction · 0.85
AddIdentifyFunction · 0.85
AddRepairFunction · 0.85
AddRechargeFunction · 0.85

Calls 1

SetCursorPosFunction · 0.85

Tested by

no test coverage detected