Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Module
love.mouse
Provides an interface to the user's mouse.
Functions
getPosition( )
Returns the current position of the mouse.
getX( )
Returns the current x-position of the mouse.
getY( )
Returns the current y-position of the mouse.
isDown( button )
Checks whether a certain button is down.
isGrabbed( )
Checks if the mouse is grabbed.
isVisible( )
Checks if the cursor is visible.
setGrab( grab )
Grabs the mouse and confines it to the window.
setPosition( x, y )
Sets the current position of the mouse.
setVisible( visible )
Sets the current visibility of the cursor.
Constants
MouseConstant
Mouse buttons.
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question