Difference between revisions of "cock.getMouseFactor"

m (Created page with "Gets horizontal and vertical mouse factor. You can access these values directly, see etc.mouse.* fields. == Synopsis == === Functio...")
 
m
Line 2: Line 2:
 
== Synopsis ==
 
== Synopsis ==
 
=== Function ===
 
=== Function ===
<source lang="Lua">x, y = cock.setMouseFactor ( self )</source>
+
<source lang="Lua">x, y = cock.getMouseFactor ( self )</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|table|self|An object to use.}}
 
{{param|table|self|An object to use.}}

Revision as of 17:16, 1 September 2013

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

Synopsis

Function

x, y = cock.getMouseFactor ( self )

Arguments

table self
An object to use.

Returns

number x
Scaling factor by X axis.
number y
Scaling factor by Y axis.

See also