Difference between revisions of "cock.setMouseOffset"
m |
m |
||
Line 5: | Line 5: | ||
=== Arguments === | === Arguments === | ||
{{param|table|self|An object to use.}} | {{param|table|self|An object to use.}} | ||
− | {{param| | + | {{param|number|x|Optional. X-coordinate to use as center. Will use old value if not provided.}} |
− | {{param| | + | {{param|number|y|Optional. Y-coordinate to use as center. Will use old value if not provided.}} |
==See also== | ==See also== | ||
*[[cock.getMouseOffset]] | *[[cock.getMouseOffset]] |
Revision as of 17:13, 1 September 2013
Sets horizontal and vertical mouse offset. It will be treaten as the "screen center", e.g. if mouse goes to the left or the the above of it then mouse position will read negative value. You can access these values directly, see etc.mouse.* fields.
Contents
Synopsis
Function
cock.setMouseOffset ( self, x, y )
Arguments
table self
- An object to use.
number x
- Optional. X-coordinate to use as center. Will use old value if not provided.
number y
- Optional. Y-coordinate to use as center. Will use old value if not provided.
See also
- cock.getMouseOffset
- cock.setMouseFactor
- Common Organization of Controls Kit Fields
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit