Difference between revisions of "love.mouse"

(Added callbacks to 'see also')
Line 1: Line 1:
 
Provides an interface to the user's mouse.
 
Provides an interface to the user's mouse.
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.mouse]]
+
{{#ask: [[Category:Functions]] [[parent::love.mouse]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 
== Enums ==
 
== Enums ==
{{#ask: [[Category:Enums]] [[parent::love.mouse]]
+
{{#ask: [[Category:Enums]] [[parent::love.mouse]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
[[Category:Modules]]
 
{{#set:Description=Provides an interface to the user's mouse.}}
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 
* [[love.mousepressed]]
 
* [[love.mousepressed]]
 
* [[love.mousereleased]]
 
* [[love.mousereleased]]
 +
[[Category:Modules]]
 +
{{#set:Description=Provides an interface to the user's mouse.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.mouse}}
 
{{i18n|love.mouse}}

Revision as of 10:36, 25 March 2011

Provides an interface to the user's mouse.

Functions

love.mouse.getPositionReturns the current position of the mouse.
love.mouse.getXReturns the current x-position of the mouse.
love.mouse.getYReturns the current y-position of the mouse.
love.mouse.isDownChecks whether a certain button is down.
love.mouse.isGrabbedChecks if the mouse is grabbed.
love.mouse.isVisibleChecks if the cursor is visible.
love.mouse.setGrabGrabs the mouse and confines it to the window.
love.mouse.setPositionSets the current position of the mouse.
love.mouse.setVisibleSets the current visibility of the cursor.

Enums

MouseConstantMouse buttons.

See Also


Other Languages