Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Gets a Cursor object representing a system-native hardware cursor.
Hardware cursors are framerate-independent and work the same way as normal operating system cursors. Unlike drawing an image at the mouse's current coordinates, hardware cursors never have visible lag between when the mouse is moved and when the cursor position updates, even at low framerates.
cursor = love.mouse.getSystemCursor( ctype )
CursorType ctype
Cursor cursor
The "image" CursorType is not a valid argument. Use love.mouse.newCursor to create a hardware cursor using a custom image.
function love.load() i_beam_cursor = love.mouse.getSystemCursor("ibeam") love.mouse.setCursor(i_beam_cursor) end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.mouse.getSystemCursor