Skip to content

Commit

Permalink
Fixed the documentation for SDL_SetRelativeMouseMode()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 9, 2023
1 parent cabedee commit fb0c319
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions include/SDL3/SDL_mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,9 @@ extern DECLSPEC int SDLCALL SDL_WarpMouseGlobal(float x, float y);
/**
* Set relative mouse mode.
*
* While the mouse is in relative mode, the cursor is hidden, and the driver
* will try to report continuous motion in the current window. Only relative
* motion events will be delivered, the mouse position will not change.
*
* Note that this function will not be able to provide continuous relative
* motion when used over Microsoft Remote Desktop, instead motion is limited
* to the bounds of the screen.
* While the mouse is in relative mode, the cursor is hidden, the mouse
* position is constrained to the window, and SDL will report continuous
* relative mouse motion even if the mouse is at the edge of the window.
*
* This function will flush any pending mouse motion.
*
Expand Down

0 comments on commit fb0c319

Please sign in to comment.