Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

SDL.createCursor

Create a cursor.

Function

SYNOPSIS

cursor, err = function SDL.createCursor(data, mask, w, h, x, y)

ARGUMENTS

  • data, the data
  • mask, the mask
  • w, the cursor width
  • h, the cursor height
  • hotx, the x position of the cursor hot spot
  • hoty, the y position of the cursor hot spot

RETURNS

  • cursor, the cursor object or nil on failure
  • err, the error message
Clone this wiki locally