grab keys save to variable

so iv been looking around trying to find a way to grab key presses from the user no matter where they are typing using a keyboard hook and saving the keystrokes to a text file by running them through a variable into an ofstream and im wondering if anyone could help me with that or give me some examples
Last edited on
I'm afraid you need some library like Ncurses or PDcurses or similar - or a graphic library, which would be even better.
Topic archived. No new replies allowed.