boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.77k stars 433 forks source link

is_pressed block my program #520

Open ModAndThink opened 2 years ago

ModAndThink commented 2 years ago

So i was working on my engine when an error occur. I dont know why but the method is_pressed lock my program. The program lock when i run just a thread.

WisdomPill commented 2 years ago

Hello @ModAndThink,

please paste some code to reproduce your issue.

Also a question: are you sure you are not using 100% of the cpu because there is no wait?