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

Since 0.2.0, keyboard.press_and_release() doesn't work anymore (from a Python app) #501

Open
AnnoyingTechnology opened this issue Nov 11, 2024 · 2 comments
Labels
bug Something isn't working regression Feature got buggy/looking worse than before

Comments

@AnnoyingTechnology
Copy link

AnnoyingTechnology commented Nov 11, 2024

Hi,

I wrote an automatic gearbox Python app a while back. Some people seem to enjoy it as it behaves like a real auto gearbox. Great for a Sunday drive.
It works by reading multiple parameters to make a decision, taking into account the current driving style.

Upon decision, it sends keyboard.press_and_release('o') or keyboard.press_and_release('p').

This used to work until CSP 0.1.79, starting at CSP 0.2.0, the keypress are mostly ignored.
Some (1%?) seems to filter through, but that breaks the behaviour of the App anyways.
I have double-checked my code, and the keypress are indeed being sent/pressed, confirming that the issue is out of my scope.

Could you please either :

  • fix what's blocking the keystrokes on CSP ?
  • provide me with alternative means of sending upshift/downshift instructions that CSP won't interfere with ?

Thanks!

@AnnoyingTechnology
Copy link
Author

Note that, I can bruteforce my way into having the keypress honoured (basically, a loop pressing until one keypress gets through).
But that hangs the game for 1sec at each up/downshift and is hacky as.

@4utomatas
Copy link

I am the user of this app. It is not working since 0.2.0. Please help us fix the issue!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Feature got buggy/looking worse than before
Projects
Status: Todo
Development

No branches or pull requests

3 participants