Thanks - however, in the mean while i have read some more, and now I know better what i am looking for.
It looks like what I need is a multithreaded application - in which, one thread will be monitoring keyboard input,in paralel to another thread that will do other stuff.
Any pointers and url's...
Well,
I guess it has to do with CallBack function usage right?
I understand how to define and write a call back function,
but i dont understand, how can i tell the system to call my call back - when lets say "x" was pressed?
Thanks
Hi all,
Is there a way, to have a program in C, react to events,
such as a key stroke?
I mean, to have the program be event driven, for example - no matter at what point the execution of the program is, if key is pressed - it should execude func().
Any pointer, example code, book referance or...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.