1
I’ve always used the GetKeyState()
to know if the user is pressing a key, but I see that many people use more the GetAsyncKeyState()
. With that came to me the following doubts:
What is the difference between the 2?
When should I use each?
In an application that I must have the best performance and speed possible, which I should use?
One detects pressing and stops running, the other continues running the current thread asynchronously. In theory, all functions that have
Async
in the name, must return aTask
asynchronous.– CypherPotato