Sam Lantinga
Sam Lantinga
You shouldn’t set any of the hints in the demo above, they’re just used to make it easier to see what the mouse is doing.
3.4 is soft-locked at this point. raw events can be considered for 3.6, but let's see what's actually needed here.
I'm not able to reproduce the issue you described. I ran SDL3 testsprite with the `--info event_motion` command line parameter to print out mouse motion, then pressed Ctrl+G to grab...
Try this: ```c #include #include int main(int argc, char* argv[]) { bool done = false; SDL_Window *window = SDL_CreateWindow("Relative motion test", 800, 600, 0); SDL_SetWindowRelativeMouseMode(window, true); // Make sure the...
I'm not sure how SDL2 provided the functionality you're asking for. Can you provide a minimal SDL2 program that works the way you want?
With my example above, the mouse should not move slower when grabbed, at least on Windows. Did you test it? https://github.com/libsdl-org/SDL/issues/13151#issuecomment-3236946643
> I cannot see a the cursor when grabbed, so it is hard to tell. And the mouse coordinates are nowhere used as input like it was with the lines....
@madebr, is there any reason this is still draft and shouldn't be merged for 3.4.0?
Looks good to me! Typically we don't do review while PRs are in the draft stage.
Thanks for the patch! What’s the use case for this?