MPI 04.00 Reference >> mpiPlatform
int32_t mpiPlatformKey(MPIWait wait)
Required Header: stdmpi.h
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.
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
|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|
|if no input character was available|
|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|