Welcome! Log In Create A New Profile

Advanced

How to add multi-button or multi-key

Posted by lu 
How to add multi-button or multi-key
April 21, 2025 08:28AM
Dear,

I want add multi-key or multi-button in my program, but I can't seem to find relevant commands to implement this functionality.

When using eye-tracking as input, multi-target selection works well through the 'multitarget' command. However, 'multitarget' only supports X,Y coordinate data. For keyboard (keyinput) or button inputs, there doesn't appear to be an equivalent command. Could you advise if there's a way to implement multi-target keypress programs? (e.g., allowing subjects to press any of keys 1/2/3/4 during the response period)



Thank you.
Re: How to add multi-button or multi-key
April 21, 2025 02:46PM
Just declare multiple KeyCheckers or SingleButtons. Combine them with aggregators, if necessary.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.