mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-11 13:29:30 +00:00
commented on use of SDL_SetRelativeMouseMode
This commit is contained in:
parent
7767f128e5
commit
3bae0bbda9
|
@ -2000,6 +2000,11 @@ static int SDLCALL on_sdl_event_generated(void *userdata, SDL_Event * event)
|
||||||
(display_type == DISPLAY_SCREEN && !is_full);
|
(display_type == DISPLAY_SCREEN && !is_full);
|
||||||
if (adjust_fullscreen) {
|
if (adjust_fullscreen) {
|
||||||
do_toggle_fullscreen();
|
do_toggle_fullscreen();
|
||||||
|
|
||||||
|
// Utilizing SDL2's 'relative mouse mode', when in fullscreen,
|
||||||
|
// fixes an issue on OSX hosts whereby a fullscreen window
|
||||||
|
// can, in some cases, be dragged around.
|
||||||
|
// ( https://github.com/DavidLudwig/macemu/issues/19 )
|
||||||
if (is_fullscreen(sdl_window)) {
|
if (is_fullscreen(sdl_window)) {
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user