MPI 04.00 Reference >> mpiPlatform
mpiPlatformKey
Declaration
long mpiPlatformKey(MPIWait wait)
Required Header: stdmpi.h
Description
mpiPlatformKey returns an input character (typically a keystroke) if an input character is available.
If an input charater is not available, PlatformKey waits wait milliseconds for an input character to become available.
NOTE:
mpiPlatformKey is not fully implemented for all operating sytems. For example, in VentureCom's RTX Windows Extensions, a keystroke will be simulated after 10 seconds.
If "wait" is |
Then |
---|---|
MPIWaitFOREVER (-1) | PlatformKey will wait for an input character forever |
MPIWaitPOLL (0) | PlatformKey will return immediately |
a value (not -1 or 0) | PlatformKey will wait for an input character for wait milliseconds |
Return Values | |
---|---|
-1 |
if no input character was available |
0 |
PlatformKey has read a non-zero character (typically a function key or other non-ASCII value), and mpiPlatformKey(...) should be called AGAIN immediately to receive that non-zero character |
a value (not -1 or 0) (an ASCII character) |
(typically a keystroke) if an input character is available |