Difference between revisions of "cock.setMouseFactor"

(Created page with "Sets horizontal and vertical mouse factor. Mouse readings will be multiplied by provided values. This is essentially a mouse sensevity. == Synopsis == === Function === <source la...")
 
m
Line 1: Line 1:
Sets horizontal and vertical mouse factor. Mouse readings will be multiplied by provided values. This is essentially a mouse sensevity.
+
Sets horizontal and vertical mouse factor. Mouse readings will be multiplied by provided values. This is essentially a mouse sensevity. You can access these values directly, see [[Common Organization of Controls Kit Fields|etc.mouse.*]] fields.
 
== Synopsis ==
 
== Synopsis ==
 
=== Function ===
 
=== Function ===
Line 5: Line 5:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|table|self|An object to use.}}
 
{{param|table|self|An object to use.}}
{{param|string|x|Optional. Scaling factor by X axis. Will use old value if not provided.}}
+
{{param|number|x|Optional. Scaling factor by X axis. Will use old value if not provided.}}
{{param|string|y|Optional. Scaling factor by Y axis. Will use old value if not provided.}}
+
{{param|number|y|Optional. Scaling factor by Y axis. Will use old value if not provided.}}
 
==See also==
 
==See also==
 
*[[cock.setMouseOffset]]
 
*[[cock.setMouseOffset]]

Revision as of 17:14, 1 September 2013

Sets horizontal and vertical mouse factor. Mouse readings will be multiplied by provided values. This is essentially a mouse sensevity. You can access these values directly, see etc.mouse.* fields.

Synopsis

Function

cock.setMouseFactor ( self, x, y )

Arguments

table self
An object to use.
number x
Optional. Scaling factor by X axis. Will use old value if not provided.
number y
Optional. Scaling factor by Y axis. Will use old value if not provided.

See also