#include #include using namespace std; Display* dpy; void printKeysym(int keycode, int index){ int keysym = XKeycodeToKeysym(dpy, keycode, index); cout << "keycode="<< keycode << ", index=" << index << " => keysym=" << keysym << endl; } int main(const int argc, const char* argv[]){ dpy = XOpenDisplay(NULL); int keycode = 11; for( int index = 0; index < 4; index++ ){ printKeysym(keycode, index); } }