osu-framework icon indicating copy to clipboard operation
osu-framework copied to clipboard

Changing cursor confine modes freezes the system-wide cursor for x00ms

Open peppy opened this issue 5 years ago • 6 comments

Calls to SDL_SetWindowGrab(TRUE) block input system-wide for a short period. Not sure what to do about this, but opening an issue for tracking. Adding to my backlist of things to report to SDL2 when i manage to make a bugzilla account (assigning until reported).

This is an issue osu!-side where we change the confine mode during transition to gameplay (if the user has the "during gameplay" settings) and it adds a period of non-responsiveness that feels pretty bad.

peppy avatar Dec 10 '20 09:12 peppy

Unassigning this, but this issue does still exist and needs to be reported or fixed upstream.

peppy avatar Dec 10 '21 03:12 peppy

Apparently this is also noticed in Windows 11 (according to ppy/osu#17798).

frenzibyte avatar Apr 13 '22 01:04 frenzibyte

Can't repro on windows 10/11/whatever.

Can confirm that cursor confining on windows is COMPLETELY BROKEN. Something has regressed beyond repair.

  • Confine doesn't work
  • Mouse warps all over the place when enabling it

Tested both raw input on and off, broken in both cases, windowed.

peppy avatar Apr 17 '22 03:04 peppy

Interesting, I have checked under Parallels with my mouse plugged directly to the VM, and confinement has been working so far with both raw input on/off (Windows 11).

In addition, I can no longer reproduce this under my machine, so I'm unfortunately not able to dig deep and report this to SDL (there's also the chance that it could have been fixed by now?)

frenzibyte avatar Apr 28 '22 01:04 frenzibyte

I was testing on a non-VM install, for whatever that's worth.

peppy avatar Apr 28 '22 05:04 peppy

I also can't seem to repro this on macOS anymore. Not sure if it was fixed in SDL or fixed in macOS or neither.

peppy avatar Apr 28 '22 05:04 peppy