c++ - Alternative to GetAsyncKeyState on linux -
lately i've been struggling finding alternative 'getasynckeystate' on linux... here code:
bool key_pressed(char key) { #ifdef _win32 if(getasynckeystate(key) & 0x8000) {     return 1; } else {     return 0; } #endif  #ifdef __linux__    //what add here// #endif }
i searched web , can find using librarys , couldn't understand it... can give example?
 
 
Comments
Post a Comment