benilla-re systems structs docs

GetCursorPosition

Lua global function · registered 2 times

Registration 1

Function
Script::GetCursorPosition glue
Meaning
Returns the cursor on the screen root, about 768·aspect times its x fraction and 768 times its y verified, proof two
Registered in
global table s_glueScriptFunctions glue
Registrar pair
0x837548
Arguments
0 exact
Returns
2 values exact, kinds (number,number) agree
Notes
name-not-unique

Registration 2

Function
GetCursorPositionLua ui
Meaning
Pushes the cursor x and y in interface units, 768·a·x and 768·y for the top frame dwords x and y verified, proof two
Registered in
global table s_gameScriptFunctions ui
Registrar pair
0x83e268
Arguments
0 exact
Returns
2 values exact, kinds (number,number) agree
Notes
name-not-unique

Arguments is the largest Lua stack index the function reads: a floor, never a check. Returns lists the number and the kinds of the values it pushes; ? is unknown. what the columns mean.

Cited in 4