How would I do that? What libraries would I have to use? I want to do this without having a global keyboard hook. Maybe see the state for each key every half a second? Can anyone give me an example? Thanks.
How would I do that? What libraries would I have to use? I want to do this without having a global keyboard hook. Maybe see the state for each key every half a second? Can anyone give me an example? Thanks.
Hand over your source code, and nobody gets hurt.
portable libraries like pdcurses or non portable libraries like conio provide keyboard handles. windows.h does too, i think.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Can you give me an example? :S
Hand over your source code, and nobody gets hurt.
With ncurses:
or something like that. Been a while since I last used the pdcurses library. The define should probably be differently named.Code:int ch; ch = getch(); if (ch == LEFT_SHIFT) printw("Pressed");
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.