Hello, I am pretty new with C++ but I managed to make a simple desktop game. I have a problem, how can I detect what key is pressed (even if the window is not focused).
I am asking this becouse I don't have a window, the "players" are drawed directly on the desktop, and I need it to detect WHAT key has been pressed (global) .

So I need a function similar to this :

getKeyPress()

This will return what key has been pressed .
Can someone please help me with this ?