Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
383 stars 73 forks source link

added SDL.createSystemCursor function and SDL.systemCursor enum #64

Closed xriss closed 7 years ago

xriss commented 7 years ago

Noticed this function was missing so added it in

https://wiki.libsdl.org/SDL_CreateSystemCursor

Please double check that the capitalisation of the enums is as expected.

...also noticed that MouseCursor was not registered so setting the cursor was never actually possible.

and l_createColorCursor reads its arguments slightly wrong

Tangent128 commented 7 years ago

Looks good to me; will you add the createSystemCursor function to the wiki?