love.mouse

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