title: Linux/C++ Mouse Events without sudo
body: <p>I need to detect if the left mouse button is clicked and then released. <a href="https://stackoverflow.com/questions/11451618/how-do-you-read-the-mouse-button-state-from-dev-input-mice">This</a> question using /dev/input/mice however i'd need to run the program with sudo to make it work which i want to avoid.    </p>