Parker Products OPS1200 Video Game Keyboard User Manual


 
Chapter 2, OPS1200 Firmware Command Set
15
TIMEOUT (OPS1200 Display and Keyboard Only)
Sets up the character input timeout value
Format: TIMEOUT #device,{value}
Group: Character I/O
Units: none
See also: INPUT, OPEN
This command sets up a timeout value to be used by the “INPUT” and “ON MENU”
commands, in case no character is input within a specified period of time. The value
is in 0.1-second increments. This command also flushes the input buffer of the device
selected. The INPUT statement returns an error code of 34 if the timeout has expired.
The INPUT statement also zeroes out the TIMEOUT value after using regardless if a
timeout has occurred or not.
Therefore, if a timeout is needed on successive occasions, the TIMEOUT command
must be used to set the timeout before the INPUT command.
The following example sets the input timeout value to 1 second for device #1:
Usage example:
TIMEOUT #1,10