Difference between revisions of "love.mouse"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Provides an interface to the user's mouse. | |
== Functions == | == Functions == | ||
{{#ask: [[Category:Functions]] [[parent::love.mouse]] | {{#ask: [[Category:Functions]] [[parent::love.mouse]] | ||
Line 12: | Line 12: | ||
}} | }} | ||
[[Category:Modules]] | [[Category:Modules]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Provides an interface to the user's mouse.}} |
== See Also == | == See Also == | ||
* [[parent::love]] | * [[parent::love]] |
Revision as of 16:17, 14 February 2010
Provides an interface to the user's mouse.
Functions
love.mouse.getCursor | Gets the current Cursor. |
love.mouse.getGlobalPosition | Gets the global position of the mouse on the screen. |
love.mouse.getPosition | Returns the current position of the mouse. |
love.mouse.getRelativeMode | Gets whether relative mode is enabled for the mouse. |
love.mouse.getSystemCursor | Gets a Cursor object representing a system-native hardware cursor. |
love.mouse.getX | Returns the current x-position of the mouse. |
love.mouse.getY | Returns the current y-position of the mouse. |
love.mouse.hasCursor | Gets whether cursor functionality is supported. |
love.mouse.isCursorSupported | Gets whether cursor functionality is supported. |
love.mouse.isDown | Checks whether a certain button is down. |
love.mouse.isGrabbed | Checks if the mouse is grabbed. |
love.mouse.isVisible | Checks if the cursor is visible. |
love.mouse.newCursor | Creates a new hardware Cursor object from an image. |
love.mouse.setCursor | Sets the current mouse cursor. |
love.mouse.setGrab | Grabs the mouse and confines it to the window. |
love.mouse.setGrabbed | Grabs the mouse and confines it to the window. |
love.mouse.setPosition | Sets the current position of the mouse. |
love.mouse.setRelativeMode | Sets whether relative mode is enabled for the mouse. |
love.mouse.setVisible | Sets the current visibility of the cursor. |
love.mouse.setX | Sets the current X position of the mouse. |
love.mouse.setY | Sets the current Y position of the mouse. |
Enums
CursorType | Types of hardware cursors. |
MouseConstant | Mouse buttons. |