Fix mouse capture behavior on MacOS #300

This commit is contained in:
RonaldReagan
2021-05-21 21:53:20 -06:00
parent 88a695c715
commit 65ec88baf3
+5
View File
@@ -1350,6 +1350,11 @@ int main(int argc, char **argv)
SDL_SetWindowIcon(screen, icon);
#endif
#ifdef __APPLE__
// Fix https://github.com/assaultcube/AC/issues/300
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
#endif
SDL_ShowCursor(0);
initlog("gl");