I used GetAsyncKeyState(char) function in windows, which returns a nonzero value if char key is down and 0 if it is not.
Unfortunately it is in windows.h so does not work on linux.
Anyone knows a similar function to it? It does not need to catch shift, f1 etc virtual keys. I just want to move my character to forward if ‘w’ is pressed =)