Difference between revisions of "love.mousepressed"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Callback function triggered when a mouse button is pressed.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 15:
 
* [[parent::love]]
 
* [[parent::love]]
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]
{{#set:Description=}}
+
{{#set:Description=Callback function triggered when a mouse button is pressed.}}

Revision as of 16:17, 14 February 2010

Callback function triggered when a mouse button is pressed.

Function

Synopsis

love.mousepressed( x, y, button )

Arguments

number x
Mouse x position.
number y
Mouse y position.
MouseConstant button
Mouse button pressed.

Returns

Nothing.

See Also