Linux X11 – Global Keyboard Hook
Try compile easy code from this page: http://webhamster.ru/site/page/index/articles/comp/367 It’s sample of get global keyboard event. This small app working as xinput. Remark 1: Write device ID to mian.cpp (get ID by running xinput without parameters): sprintf(deviceId, “9”); Remark 2: Compile command: gcc ./main.cpp -lstdc++ -lX11 -lXext -lXi Remakr 3: Before compile, install libxi-dev package: apt-get … Read more