Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird cursor behavior on M1 + Vulkan in fullscreen #143

Open
taoeffect opened this issue Jan 25, 2022 · 6 comments
Open

Weird cursor behavior on M1 + Vulkan in fullscreen #143

taoeffect opened this issue Jan 25, 2022 · 6 comments

Comments

@taoeffect
Copy link

taoeffect commented Jan 25, 2022

On macOS Vulkan on an M1, freshly compiled master, the cursor doesn't "grab" unless I press and hold the left mouse button.

To fix, I have to start the game, press and hold the left mouse button to move the cursor to Setup, let go, click, and do the same to move through System > Graphics > Full screen -> Off > Accept, then the game goes windowed and everything works fine, and then I turn fullscreen back on and everything works perfectly.

So weird. So I have to use this trick to turn fullscreen off and back on to get the cursor to move normally when I move the mouse.

@ensiform
Copy link
Contributor

I feel like this is some limitation on security recently on Macs but don't quote me 100% on that. I could have swore there was a commit in SDL about mouse grab on Macs in the last few months. Don't have ability to find it at the moment though.

@taoeffect
Copy link
Author

I don't understand how it can be a security thing though if it works by toggling fullscreen using the mouse-hold method...

@ec-
Copy link
Owner

ec- commented Jan 30, 2022

What SDL2 version?

@taoeffect
Copy link
Author

I'm guessing it's using the version of SDL2 installed by Homebrew, which is 2.0.20. I just tried uninstalling the homebrew version of SDL and rebuilding, and it failed to build - which tells me that indeed it was linking against it. It builds again after I run brew install sdl2, so it must be using 2.0.20.

@kuncevic
Copy link

Does that seems related?

@taoeffect
Copy link
Author

I don't remember that being the case, no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants