Difference between revisions of "ISInterface:GetMousePos"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
===Syntax=== | ===Syntax=== | ||
− | + | *bool GetMousePos(int &X, int &Y) | |
== Purpose == | == Purpose == | ||
− | + | To obtain the current mouse position | |
== Usage == | == Usage == | ||
=== Parameters === | === Parameters === | ||
− | + | *int &X | |
+ | :'''[out]''' Variable to put the X coordinate in | ||
+ | *int &Y | ||
+ | :'''[out]''' Variable to put the Y coordinate in | ||
=== Return Value === | === Return Value === | ||
− | + | *bool | |
+ | :Returns true on success, false on failure | ||
== Examples == | == Examples == | ||
− | + | int mousex, mousey; | |
− | + | pISInterface->GetMousePos(mousex,mousey); | |
== See Also == | == See Also == | ||
* [[ISXDK:ISInterface|ISInterface]] | * [[ISXDK:ISInterface|ISInterface]] |
Latest revision as of 23:04, 2 September 2005
Syntax
- bool GetMousePos(int &X, int &Y)
Purpose
To obtain the current mouse position
Usage
Parameters
- int &X
- [out] Variable to put the X coordinate in
- int &Y
- [out] Variable to put the Y coordinate in
Return Value
- bool
- Returns true on success, false on failure
Examples
int mousex, mousey; pISInterface->GetMousePos(mousex,mousey);