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

Inactivity detected while playing FPS games with Wine/Proton #19

Open
maximusyellow opened this issue Sep 25, 2023 · 1 comment
Open
Labels
good first issue Good for newcomers

Comments

@maximusyellow
Copy link

If you are to play FPS games, or any game that locks mouse movement through Wine or Proton, script does not check for activity outside of checking if cursor coordinates have been changed. In this case, with the cursor locked, it thinks that there is inactivity, forcing mouse to be moved. This causes the mouse to no longer be focused onto the game window.

Proposed fix: use mouse and keyboard listeners to check if there was activity in between the sleep calls apart from just checking pointer location

@carrot69
Copy link
Owner

carrot69 commented Sep 29, 2023

Hi @maximusyellow ! One option you could try is the --circular option, which makes the cursor move in circles. If you combine it with the --pixels 1 option, the cursor will move only 1 pixel circularly.

keep-presence --circular --pixels 1

I understand that this doesn't fix your problem, especially for playing FPS games. I'm working on a solution, but it won't be ready quickly. I'll keep you updated!

@carrot69 carrot69 added the good first issue Good for newcomers label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants