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 - HINT to show cursor in RELATIVE mouse mode
Summary: HINT to show cursor in RELATIVE mouse mode
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.9
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-22 13:37 UTC by Mouhamad Kebe
Modified: 2018-11-22 16:18 UTC (History)
1 user (show)

See Also:


Attachments
suggested patch (3.18 KB, patch)
2018-11-22 13:37 UTC, Mouhamad Kebe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.