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

Mouse input, cursor bleeds through into game #89

Open
CrazySpence opened this issue Dec 5, 2021 · 3 comments
Open

Mouse input, cursor bleeds through into game #89

CrazySpence opened this issue Dec 5, 2021 · 3 comments

Comments

@CrazySpence
Copy link
Member

I've used mouse input a couple times as it gives you faster turning and I've noticed sometimes the mouse cursor bleeds through

Platform: Mac OS

Need to find out if this is occurring on the other platforms so if anyone on Linux or Windows has tried mouse mode let me know

@uberlinuxguy
Copy link
Member

I don't know if I have seen this on windows. I have an odd setup with the app called Barrier though. So that can cause the cursor to bleed through. I will have to disable barrier and see if it happens.

I did notice oddness with the video and OBS capture though.

@slime73
Copy link
Member

slime73 commented Dec 8, 2021

I think this is happening because the game only constrains the cursor by warping it back into the window if it exits, every frame. If you move the mouse fast enough then it'll appear outside the window for the duration of that frame.

The game should really be using SDL_SetRelativeMouseMode which is designed for FPS setups like parsec's gameplay. I tried playing around with it a little bit last weekend (including querying relative mouse positions instead of absolute ones, every frame) but the code around "mouse drift" is a little confusing so I didn't get it to work correctly yet.

There might be other possible workarounds in the meantime, too.

@CrazySpence
Copy link
Member Author

So even in the menus if I move the mouse around rapidly the custom cursor becomes overridden by the system cursor

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

No branches or pull requests

3 participants