Difference between revisions of "love.mouse.setX"

(Created page)
 
Line 1: Line 1:
 +
{{newin|[[0.8.1]]|081|type=function}}
 
Sets the current X position of the mouse.
 
Sets the current X position of the mouse.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.mouse.setPosition( x )
+
love.mouse.setX( x )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 12: Line 13:
 
* [[parent::love.mouse]]
 
* [[parent::love.mouse]]
 
* [[love.mouse.setPosition]]
 
* [[love.mouse.setPosition]]
 +
* [[love.mouse.setY]]
 
* [[love.mouse.getX]]
 
* [[love.mouse.getX]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets the current X position of the mouse.}}
+
{{#set:Description=Sets the current X position of the mouse.}}
{{#set:Since=081}}
 
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.mouse.setX}}
 
{{i18n|love.mouse.setX}}

Revision as of 13:44, 5 June 2012

Available since LÖVE 0.8.1
This function is not supported in earlier versions.

Sets the current X position of the mouse.

Function

Synopsis

love.mouse.setX( x )

Arguments

number x
The new position of the mouse along the x-axis.

Returns

Nothing.

See Also

Other Languages