##### Views

- Page
- Discussion
- View source
- History

# love.mouse.isVisible

Checks if the cursor is visible.

## Function

### Synopsis

visible = love.mouse.isVisible( )

### Arguments

None.

### Returns

`boolean visible`
  True if the cursor to visible, false if the cursor is hidden.

## Examples

Toggle mouse visibility by pressing tab (using setVisible).

function love.keypressed(key)
if key == "tab" then
local state = not love.mouse.isVisible() -- the opposite of whatever it currently is
love.mouse.setVisible(state)
end
end

## See Also

- love.mouse
- love.mouse.setVisible

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.mouse.isVisible"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties