cisst-saw
Loading...
Searching...
No Matches
cmnKbHit.h File Reference

Go to the source code of this file.

Macros

#define _cmnKbHit_h

Functions

int CISST_EXPORT cmnKbHit (void)

Macro Definition Documentation

◆ _cmnKbHit_h

#define _cmnKbHit_h

Function Documentation

◆ cmnKbHit()

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().