Input name for mouse buttons

0 votes
87 views
asked Jun 25 by Zisheng
Hi,

In my random dot motion experiment, I'm capturing input from the mouse and I'd like to provide feedback about whether the correct mouse button was pressed. I have it set up on my keyboard such that "Z" and "Slash" are the correct keys for left and right respectively but I don't know what input names I should type in the condition list for the mouse. For example, might it it be "LMB" and "RMB" for left and right mouse button respectively or something else?

1 Answer

0 votes
answered Jun 25 by Ilia Korjoukov (12,280 points)
selected Jun 25 by qandaadmin
 
Best answer

Hi Zisheng,

For the Button element, the mouse and joysticks the buttons are normally called ’Button 1’, ‘Button 2’, etc. Note that you need to keep the capital letter and the space when checking the names in code.

You can actually see the correct button names in the drop-down editor for the ‘Monitored Button’ property of the Button element. The editor has the second tab with a list of all buttons on the selected input device (see below).

Welcome to EventIDE Q&A forum where you can ask questions about EventIDE software and receive answers from other members of the community

FAQ questions

Installation and License


Coding


Eye-tracking


EEG Analysis


Visual Stimuli


Runtime and Data Collection


Hardware

...