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
2values 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
2values 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
- Cursor and screen size in glue: the script functions
- Facing drive constants in glue: the select scene
- Screen size and cursor globals in ui: the Frame and Region methods
- Cursor and camera in ui: game start-up and shutdown