| Summary: | Mouse position changes while in relative mouse mode SDL_SetRelativeMouseMode | ||
|---|---|---|---|
| Product: | SDL | Reporter: | ihcusk |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.9 | ||
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
|
Description
ihcusk
2018-12-01 16:40:22 UTC
(In reply to ihcusk from comment #0) > From https://wiki.libsdl.org/SDL_SetRelativeMouseMode : > "Only relative motion events will be delivered, the mouse position will not > change." > > After disabling the relative mouse mode and moving the mouse, the cursor is > in a different position than where it was before enabling the mode. > > Example C program: https://pastebin.com/a2JNrMT8 > > Windows 7 32-bit, MinGW-w64 GCC 7.3.0, SDL 2.0.9 Sorry, I meant: After disabling the relative mouse mode, the cursor is in a different position than where it was before enabling the mode and moving the mouse. (In reply to ihcusk from comment #0) > From https://wiki.libsdl.org/SDL_SetRelativeMouseMode : > "Only relative motion events will be delivered, the mouse position will not > change." > > After disabling the relative mouse mode and moving the mouse, the cursor is > in a different position than where it was before enabling the mode. > > Example C program: https://pastebin.com/a2JNrMT8 > > Windows 7 32-bit, MinGW-w64 GCC 7.3.0, SDL 2.0.9 There is an error in the example program. Again, sorry. Correct version: https://pastebin.com/hLQnkkRP |