love.mouse.getSystemCursor (한국어)

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

시스템에 내장된 커서 모양을 받아옵니다.

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
The type of system cursor to get.

리턴값

Cursor cursor
The Cursor object representing the system cursor type.

알아 두기

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

같이 보기

다른 언어