Difference between revisions of "love.mouse.getX (简体中文)"

(鼠标)
 
(顺便看看)
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
</source>
 
</source>
 
== 顺便看看 ==
 
== 顺便看看 ==
* [[parent::love.mouse]]
+
* [[parent::love.mouse (简体中文)]]
* [[love.mouse.getY]]
+
* [[love.mouse.getY (简体中文)]]
* [[love.mouse.getPosition]]
+
* [[love.mouse.getPosition (简体中文)]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Returns the current x-position of the mouse.}}
+
{{#set:Description=返回当前鼠标x坐标.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
 
== 多国语言 ==
 
== 多国语言 ==
 
{{i18n|love.mouse.getX}}
 
{{i18n|love.mouse.getX}}

Latest revision as of 12:47, 15 March 2013

返回当前的鼠标x坐标。

函数

实例

x = love.mouse.getX( )

参数

没有.(没有写出来毛线啊)

返回

number x
鼠标沿x轴的位置

例程在这

在鼠标的x的位置画一条垂直线

function love.draw()
   local x = love.mouse.getX()
   love.graphics.line(x,0, x,love.graphics.getHeight())
end
--这么简单的东东就不解释了

顺便看看


多国语言