i want to develop a simple application without a GUI in c++ which detects mouse up and mouse down events in linux .I have no idea about how to read input events directly from /dev/input/* in linux , any pointers on how to proceed will be great .
Also, Links to any tutorials/articles will be greatly appreciated .