I'm not sure as to what keywords I should use to search this, so I'm going to ask here. I'm sorry if that's a duplicate.
Basically, I'd like to do the following
./my_prog &
where my_prog, coded in C++14,
- adds a character to file A whenever I right click.
- adds a character to file B whenever I left click.
- adds a character to file C whenever I press a key.
(That would enable me to see how often I do any of the above at the end of the day.)
First I wanted to use Qt but I realized soon afterwards that Qt does that in its own window only. (Or at least, that's as far as I can use it.) That wouldn't help as I'd rather have my_prog
count every single click and key-press.
Anyone know what library/functions I should use? Thanks.