Visual Servoing Platform
version 3.6.1 under development (2024-11-15)
|
#include <visp3/io/vpKeyboard.h>
Public Member Functions | |
vpKeyboard () | |
virtual | ~vpKeyboard () |
int | kbhit () |
int | getchar () |
Keyboard management under unix (Linux or OSX). This class is not available under windows.
Gets a key from the keyboard without waiting for the "Enter" key.
Definition at line 82 of file vpKeyboard.h.
BEGIN_VISP_NAMESPACE vpKeyboard::vpKeyboard | ( | ) |
Activates the raw mode to read keys in an non blocking way.
Definition at line 54 of file vpKeyboard.cpp.
References vpImage< Type >::init().
|
virtual |
Stops the raw mode.
Definition at line 67 of file vpKeyboard.cpp.
int vpKeyboard::getchar | ( | ) |
Get the hit key. kbhit() indicates if a key was hitten.
Definition at line 77 of file vpKeyboard.cpp.
References vpException::fatalError.
int vpKeyboard::kbhit | ( | ) |
Definition at line 93 of file vpKeyboard.cpp.
References vpException::fatalError.
Referenced by ClassUsingPclViewer::threadedMode().