We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4398

Summary: HINT to show cursor in RELATIVE mouse mode
Product: SDL Reporter: Mouhamad Kebe <mouh.m.kebe>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: mouh.m.kebe
Version: 2.0.9   
Hardware: x86_64   
OS: Linux   
Attachments: suggested patch

Description Mouhamad Kebe 2018-11-22 13:37:06 UTC
Created attachment 3501 [details]
suggested patch

By default, SDL hides the cursor in relative mouse mode. Some applications may want to be able to display it.

If SDL_HINT_MOUSE_RELATIVE_SHOW_CURSOR is set to "1", the cursor will be visible
Comment 1 Sam Lantinga 2018-11-22 16:17:26 UTC
Some platforms implement relative mode by warping the cursor to the center of the screen every frame. On other platforms, the cursor will go to the edge of the screen and just stick there. Are you sure you want to see that?
Comment 2 Sam Lantinga 2018-11-22 16:18:32 UTC
For applications that have a logical cursor in relative mode, it's probably better for them to just draw the cursor where they intend for it to be. That's what most games do.