Tracking key release in Linux.
I've been looking for how to find when a key is released, through C, in Linux, and from what I found, putting the keyboard in raw/keycode mode is the best way.
However, I don't know what to do from there, and can't find any simple examples.
What I need is this:
A key is pressed and the program pauses until that same key is released, then returning to execution.
Does anyone have any examples of how to do this?
Is entering raw/keycode mode the best way or do you know any other way?
I can use non standard libraries, but I'm working with linux compatible ones only.
Thank you for your time.