Checks if the cursor is visible.
== Function ==
=== Synopsis ===
<source lang="lua">
visible = love.mouse.isVisible( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|visible|True if the cursor to visible, false if the cursor is hidden.}}
== Examples ==
Toggle mouse visibility by pressing tab (using [[love.mouse.setVisible|setVisible]]).
<source lang="lua">
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
</source>
== See Also ==
* [[parent::love.mouse]]
* [[love.mouse.setVisible]]
[[Category:Functions]]
{{#set:Description=Checks if the cursor is visible.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.mouse.isVisible}}