0

For my project, i have to be able to monitor the keyboard for input. Rather than having the user type in 'r' then hitting enter for an action, how would i have the user type 'r' and then have the action perform, skipping the process of hitting enter.

Thanks

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by basketball4567
0

There are no standard C or C++ functions that will do what you want. Bu8t there are some non-standard functions in conio.h, if that has been implemented by your compiler. You could also probably use something like ncurses library, or other win32 api functions.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.