I'm new in this, I want to make a program that will take a screenshot every time the mouse clicks. I have knowledge that a mouse event is also stored in a buffer file but don't know how to access it and fetch related data coordinates etc, to implement it. Help me out, please and share any resources where I can read about it.
I'm using ubuntu 20.04 and C language. I know how to capture keyboard event but don't know about mouse events.
Please take your time to explain because I'm a noob.
Thank you in advance.