Difference between revisions of "love.mouse.hasCursor"

(Created page)
 
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{newin|[[0.10.0]]|100|type=function}}
 
{{newin|[[0.10.0]]|100|type=function}}
 +
{{deprecatedin|[[11.0]]|110|type=function|text=This function has been renamed to [[love.mouse.isCursorSupported]]}}
 
Gets whether cursor functionality is supported.
 
Gets whether cursor functionality is supported.
  
Line 10: Line 11:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 +
None.
 +
=== Returns ===
 
{{param|boolean|hascursor|Whether the system has cursor functionality.}}
 
{{param|boolean|hascursor|Whether the system has cursor functionality.}}
=== Returns ===
 
Nothing.
 
  
 
== See Also ==
 
== See Also ==
Line 18: Line 19:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets whether cursor functionality is supported.}}
 
{{#set:Description=Gets whether cursor functionality is supported.}}
 +
{{#set:Removed=110}}
 +
{{#set:PrettyRemoved=0.11.0}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.mouse.hasCursor}}
 
{{i18n|love.mouse.hasCursor}}

Latest revision as of 03:52, 6 June 2019

Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Deprecated in LÖVE 11.0
This function has been renamed to love.mouse.isCursorSupported.

Gets whether cursor functionality is supported.

If it isn't supported, calling love.mouse.newCursor and love.mouse.getSystemCursor will cause an error. Mobile devices do not support cursors.

Function

Synopsis

hascursor = love.mouse.hasCursor( )

Arguments

None.

Returns

boolean hascursor
Whether the system has cursor functionality.

See Also


Other Languages