Issue # 3198 - #3307
Issue # 3198#3307xan8ter wants to merge 2 commits into
Conversation
Disabling Relative and Set Global mouse state fix the problem when playing in remote desktop in linux. (Ubuntu 25.10)
|
What's with the changes in server.cpp? |
|
You'd better rebase it on the latest master :3 |
;) |
| //fix-linux-rdp-mouse-issue-3198 | ||
|
|
||
| SDL_SetRelativeMouseMode(SDL_FALSE); | ||
| SDL_GetRelativeMouseState(&x,&y); |
There was a problem hiding this comment.
Could you tell me what the usage of these codes ?
I think the only useful one is
SDL_SetRelativeMouseMode(SDL_FALSE);
Anyway, just be like what Robyt3 mentioned in #3198
It looks like this is fixed in SDL 2.26.4:
I think the best solution is to update our libraries
There was a problem hiding this comment.
Hmm. I saw his comment. My libraries are up to date, but the problem still persists.
The SDL fix for that was for Windows only.
You're right—setting it to SDL_FALSE also fixes the issue.
GlobalState just reduces CPU usage.
Setting them to 0,0 seems to init the cursor correctly.
I'll let you decide ;)
|
You should not include changes unrelated to the issue you are attempting to fix. |
Disabling Relative and Set Global mouse state fix the problem when playing in remote desktop in linux. (Ubuntu 25.10)
Disabling Relative and Set Global mouse state fix the problem when playing in remote desktop in linux. (Ubuntu 25.10)