Re: [hatari-devel] Question about mouse grab in DebugUI |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi,
On 6.8.2024 18.16, Andreas Grabher wrote:
I have a short question: in debugui.c, DebugUI() we call SDL_SetRelativeMouseMode(false) to ungrab the mouse. Shouldn’t this be Main_SetMouseGrab(false)?
There's no Main_SetMouseGrab() function, and only functions in main.c
calling SDL_SetRelativeMouseMode() are for pausing & unpausing emulation...
Or did you mean adding such a function?
SDL_SetRelativeMouseMode() is called also from several other files:
--------------------------------------
$ git grep SDL_SetRelativeMouseMode | cut -d: -f1 | uniq -c
1 src/debug/debugui.c
2 src/dialog.c
2 src/gui-sdl/dlgAlert.c
2 src/gui-sdl/dlgHalt.c
2 src/main.c
3 src/screen.c
4 src/shortcut.c
--------------------------------------
- Eero