48 #include <visp/vpConfig.h>
49 #include <visp/vpDebug.h>
56 #include <visp/vpKeyboard.h>
64 std::cout <<
"Push some characters on the keyboard..." << std::endl;
65 printf(
"Hit 'q' or 'Q' to stop the loop ...\n");
68 std::cout <<
"Start the keyboard scrutation..." << std::endl;
71 if (keyboard.
kbhit()) {
73 printf(
"You hit key: %d '%c'\n", c, c);
74 if (c ==
'q' || c ==
'Q') {
75 printf(
"You hit key: %d %c we stop the loop\n", c, c);
85 std::cout <<
"Enter an integer: ";
95 vpTRACE(
"Sorry, for the moment, vpKeyboard class works only on unix...");
Keybord management under unix.