sdl_mouse

### Header File

The header file may include additional information sdl_mouse.hrl

### Exports

getMouseState()

Args: none
Returns: {MouseState, X, Y}
C-API: Uint8 SDL_GetMouseState(int *x, int *y);

getRelativeMouseState()

Args: none
Returns: {MouseState, X, Y}
C-API: Uint8 SDL_GetRelativeMouseState(int *x, int *y);

warpMouse(X, Y)

Args: X, Y
Returns: ok
C-API: void SDL_WarpMouse(Uint16 x, Uint16 y);

createCursor(Data, Mask, W, H, HotX, HotY)

Args: Data (Binary), Mask(Binary), W, H, HotX, HotY
Returns: CursorRef
C-API: SDL_Cursor *SDL_CreateCursor (Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);
Desc:
Data & Mask must be less than 32*32 bytes.

setCursor({cursorp,Ref})

Args: CursorRef
Returns: ok
C-API: void SDL_SetCursor(SDL_Cursor *cursor);

getCursor()

Args: none
Returns: A cursorRef
C-API: void SDL_SetCursor(SDL_Cursor *cursor);

freeCursor({cursorp,Ref})

Args: CursorRef
Returns: ok
C-API: void SDL_FreeCursor(SDL_Cursor *cursor);

showCursor(Bool)

Args: true | false
Returns: true | false (if cursor was displayed before the call)
C-API: int SDL_ShowCursor(int toggle);