GetMousePosition
From OxeyeWiki
(Difference between revisions)
Thewreck (Talk | contribs)
(Created page with '{{DaisyMethod | daisy.getMousePosition() | This method returns the X and Y position of the mouse, relative to the top-left corner of the application's active surface. | {{NoParam...')
Newer edit →
(Created page with '{{DaisyMethod | daisy.getMousePosition() | This method returns the X and Y position of the mouse, relative to the top-left corner of the application's active surface. | {{NoParam...')
Newer edit →
Revision as of 16:58, 18 January 2010
|
daisy.getMousePosition() | ||
|
This method returns the X and Y position of the mouse, relative to the top-left corner of the application's active surface. | ||
| Parameter | Expected Type | Description |
| No parameters | ||
| Returns | ||
|
Returns two values to the stack, X and Y values of the sticks, ranging from -1 to 1. | ||
| Daisymoon Video Lib |
|---|
Example
local x, y = daisy.getMousePosition()