I am developing a Linux program on c++ for listening mouse/keyboard activities. I am using the xinput library: "xinput test "
xinput
xinput test