cock.setMouseOffset

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

Function

Synopsis

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.

Remarks

Values 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.

See also