Difference between revisions of "cock.getMouseOffset"

(Created page with "Gets horizontal and vertical mouse offset. You can access these values directly, see etc.mouse.* fields. == Synopsis == === Functio...")
 
m
Line 15: Line 15:
 
*[[Common Organization of Controls Kit]]
 
*[[Common Organization of Controls Kit]]
  
{{#set:Description=Sets mouse offset.}}
+
{{#set:Description=Gets mouse offset.}}

Revision as of 17:12, 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