I am looking for a way to make my app get the input from keyboard when it's not being focused (I'm using Kivy).
And I'm currently using Pynput module to do the key detecting part, but it's doesnt seem to work very well.
-All of these problems only happen when you do not focus on your app. If your app is focused the Pynput Listener work very well.
For example: (This happens very randomly) you want to hold a key for 3 seconds then release, but the app refused to release instead it still detects that the key is still being held for 0.5 or 1 second more and then releases. (This is not my Kivy app problem, since the bug will not appear when using Kivy _on_key_down/release)
So basically you tell the system to hold a key (using Pynput Listener) for an amount of time, there will always chance the system will hold it longer than the time you gave which is very annoying and feel like a kind of lag.
So is there any other module that can detect the keyboard when the app is not being focused? Or at least can someone give me the idea to deal with this? (I'm using Window 10)