Difference between revisions of "love.mouse.getSystemCursor (Polski)"
(Created page with "{{newin (Polski)|0.9.0|090|type=function}} Gets a Cursor object representing a system-native hardware cursor. Hardware cursors are framerate-independent and work the...") |
m |
||
Line 25: | Line 25: | ||
== Zobacz również == | == Zobacz również == | ||
− | * [[parent::love.mouse]] | + | * [[parent::love.mouse (Polski|love.mouse]] |
− | * [[love.mouse.setCursor]] | + | * [[love.mouse.setCursor (Polski)love.mouse.setCursor]] |
− | * [[Constructs::Cursor]] | + | * [[Constructs::Cursor (Polski)]] |
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Gets a [[Cursor]] object representing a system-native hardware cursor.}} | {{#set:Description=Gets a [[Cursor]] object representing a system-native hardware cursor.}} | ||
== Inne języki == | == Inne języki == | ||
{{i18n|love.mouse.getSystemCursor}} | {{i18n|love.mouse.getSystemCursor}} |
Revision as of 10:10, 28 August 2018
Dostępne od wersji LÖVE 0.9.0 |
Ta funkcja nie jest dostępna we wcześniejszych wersjach. |
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.
Contents
Funkcja
Sygnatura
cursor = love.mouse.getSystemCursor( ctype )
Argumenty
CursorType ctype
- The type of system cursor to get.
Wartość zwracana
Cursor cursor
- The Cursor object representing the system cursor type.
Uwagi
The "image" CursorType is not a valid argument. Use love.mouse.newCursor to create a hardware cursor using a custom image.
Przykłady
function love.load()
i_beam_cursor = love.mouse.getSystemCursor("ibeam")
love.mouse.setCursor(i_beam_cursor)
end
Zobacz również
Inne języki
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info