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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -