2.3.7.4 Timed Button J1B1 (+/- J2B1) Response (#M)
The Timed Button J1B1 (+/- J2B1) Response command pauses Cogsys execution until
gameport button J1B1 is pressed (alone or with J2B1). If J1B1 is pressed, the
key `A' is written to output with the response time. If J1B1 is not pressed
within the specified time limit, '&' is written to
output with the time limit.
- Name:
- Timed Button J1B1 Response
- Class:
- Gameport
- Code:
#M
- Syntax:
#Mtimelimit
- System:
- Waits up to timelimit milliseconds for J1B1 (+/- J2B1) to be
pressed. Then writes response to output. Cogsys variable
7 (
COGVAR_KEY) is updated with the key pressed.
Cogsys variable 5 (COGVAR_TIME) is updated
with the reaction time.
- Output:
- The character `A' with the response time is written to output. If
the timelimit limit is reached before J1B1 is pressed,
'&' is written as
the key pressed, and timelimit as the time.
- Breakout:
- NO
- Test Files:
- `RJB1_T01.IN'
- tests basic operation
- Examples:
- input
#M500
- subject
- Presses button 1 on joystick 1 after 100 milliseconds.
- output
A100
This document was generated
on November, 24 2008
using texi2html