cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
cmnKbHit.h File Reference
#include <cisstCommon/cmnPortability.h>
#include <cisstCommon/cmnExport.h>

Go to the source code of this file.

Macros

#define _cmnKbHit_h
 

Functions

int CISST_EXPORT cmnKbHit (void)
 

Macro Definition Documentation

#define _cmnKbHit_h

Function Documentation

int CISST_EXPORT cmnKbHit ( void  )

Non blocking wait for a key press. This can be used in a loop allowing the user to press a key at anytime using something like while (!cmnKbHit()). The key that was pressed can be retrieved using cmnGetChar().