Difference between revisions of "love.mouse.getSystemCursor (한국어)"

(Created page with "{{newin|0.9.0|090|type=function}} 시스템에 내장된 커서 모양을 받아옵니다. Hardware cursors are framerate-independent and work the same way as normal operati...")
 
Line 2: Line 2:
 
시스템에 내장된 커서 모양을 받아옵니다.
 
시스템에 내장된 커서 모양을 받아옵니다.
  
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.
+
커서의 모양을 바꾸고 싶을 때, 종종 현재 커서의 좌표에 이미지를 출력해서 표현합니다. 하지만 프레임 레이트가 낮을 경우 커서의 위치를 이미지가 따라가지 못하는 경우가 발생합니다. LÖVE의 [[Cursor (한국어)|Cursor]]는 프레임 레이트에 완전히 독립적으로 동작하므로 이러한 문제가 발생하지 않습니다.
  
 
== 함수 ==
 
== 함수 ==
Line 10: Line 10:
 
</source>
 
</source>
 
=== 매개변수 ===
 
=== 매개변수 ===
{{param|CursorType|ctype|The type of system cursor to get. }}
+
{{param|CursorType (한국어)|ctype|커서 모양의 종류.}}
 
=== 리턴값 ===
 
=== 리턴값 ===
{{param|Cursor|cursor|The Cursor object representing the system cursor type.}}
+
{{param|Cursor (한국어)|cursor|시스템 내장 커서.}}
 
=== 알아 두기 ===
 
=== 알아 두기 ===
The "image" CursorType is not a valid argument. Use [[love.mouse.newCursor]] to create a hardware cursor using a custom image.
+
[[CursorType (한국어)|"image"]] 라는 내장 커서 모양은 존재하지 않습니다. 여러분이 직접 이미지를 만들어 쓰하고 싶다면 [[love.mouse.newCursor (한국어)|love.mouse.newCursor]]를 참조하세요.
  
 
== 예제 ==
 
== 예제 ==

Revision as of 18:35, 15 January 2014

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

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

커서의 모양을 바꾸고 싶을 때, 종종 현재 커서의 좌표에 이미지를 출력해서 표현합니다. 하지만 프레임 레이트가 낮을 경우 커서의 위치를 이미지가 따라가지 못하는 경우가 발생합니다. LÖVE의 Cursor는 프레임 레이트에 완전히 독립적으로 동작하므로 이러한 문제가 발생하지 않습니다.

함수

형식

cursor = love.mouse.getSystemCursor( ctype )

매개변수

CursorType (한국어) ctype
커서 모양의 종류.

리턴값

Cursor (한국어) cursor
시스템 내장 커서.

알아 두기

"image" 라는 내장 커서 모양은 존재하지 않습니다. 여러분이 직접 이미지를 만들어 쓰하고 싶다면 love.mouse.newCursor를 참조하세요.

예제

function love.load()
    i_beam_cursor = love.mouse.getSystemCursor("ibeam")
    love.mouse.setCursor(i_beam_cursor)
end

같이 보기

다른 언어