Difference between revisions of "cock.getMouseOffset"

m
m
Line 5: Line 5:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|table|self|An object to use.}}
 
{{param|table|self|An object to use.}}
== Returns ==
+
=== Returns ===
 
{{param|number|x|X-coordinate used as center.}}
 
{{param|number|x|X-coordinate used as center.}}
 
{{param|number|y|Y-coordinate used as center.}}
 
{{param|number|y|Y-coordinate used as center.}}

Revision as of 17:15, 1 September 2013

Gets horizontal and vertical mouse offset. You can access these values directly, see etc.mouse.* fields.

Synopsis

Function

x, y = cock.getMouseOffset ( self )

Arguments

table self
An object to use.

Returns

number x
X-coordinate used as center.
number y
Y-coordinate used as center.

See also