Fix wrong button in mouse callback.
[sdl] Add resource wrapper for SDL cursors.