mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 05:10:57 +00:00
upgrade SDL3 to d4b80726142d9108f16d4806c09779d612501608
This commit is contained in:
@ -43,8 +43,7 @@ public class Mouse {
|
||||
|
||||
private func getCapture() -> Bool { self._captured }
|
||||
private func setCapture(_ toggle: Bool) {
|
||||
let sdlBool = toggle ? SDL_TRUE : SDL_FALSE
|
||||
if SDL_SetRelativeMouseMode(sdlBool) >= 0 && SDL_SetWindowMouseGrab(self._window, sdlBool) >= 0 {
|
||||
if SDL_SetWindowRelativeMouseMode(self._window, toggle) && SDL_SetWindowMouseGrab(self._window, toggle) {
|
||||
self._captured = toggle
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user