[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.7.3 Button Response (#V)

The Button Response command waits until a game port button is pressed. It then writes `' and the elapsed time to output. Note specifically that regardless of which button was pressed, `' is written.

Button Response will terminate Cogsys execution of the experiment if the (BREAKOUT_CHAR) key is entered.

Name:
Button Response
Class:
Game Port
Code:
#V
Syntax:
#V
System:
Waits until any game port button is pressed. Writes `' to output. Cogsys variable (COGVAR_KEY) is updated with `'. Cogsys variable (COGVAR_TIME) is updated with the reaction time.

Output:
`' and the time are written to output.
Breakout:
YES

Test Files:
`BUTR_T01.IN'
tests basic operation

Examples:

input
#V
subject
Press a button after 100 milliseconds.
output
100



This document was generated by Usman Muzaffar on June, 28 2000 using texi2html