Welcome Guest, you are in: Login

EventIDE Wiki

RSSRSS

Navigation




Search the wiki


PoweredBy

Page History: Button Element

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2011/07/15 18:45


Button is a very simple element that is capable to detect button presses on various input devices, which are supported though DirectInput interface in Windows. The devices include the keyboard, mouse and different joysticks and gamepads. The detection happens only during activation of the parent event and is possible for multiple buttons at the same time (you have to provide one button element for each button you want to detect). The element can be set to detect the button releases instead of presses.

Element Description

On successful detection the element becomes triggered. It means that it stores the exact time of the triggering and call a code snippet that you may want to execute at this moment (if the snippet is defined).

The typical usage for the button element is detection of particular participant responses. However, you can use the button elements to provide operator's feedback to an experiment (for example, adjusting the experimental parameters with a keyboard at the runtime)

Note: the default settings allow detection only of the first button press. The following presses will be ignored. Change properties in the BEHAVIOUR group according to your requirements.

Properties of Button Element

NameDescriptionAttributesValue Type
Control
ButtonSelection of the button for the element. Button name can be selected from a list or, be detected. For the detecton move mouse over the web icon and press the selected button on your input device.Design-time action
Input deviceSelected input device from a list of all DirectInput devices currently connected to a computer.Design-time action
Runtime info
Is downIndicates if the selected button is being physically pressed (the element is not necessarily triggered)R, Read-onlyBoolean
Statistics
Last hit timeIndicates the time (ms) from the current activation of the parent event when the button was triggered last time. This property is recommended for getting the accurate reaction time data.Runtime commandUInt64
Was triggeredIndicates if the element has been triggered at least once starting from the current activation of the parent eventRuntime commandBoolean
Behavior
Trigger on releaseDefines if the element obtains the triggered status only when the pressed button is released. Otherwise, the element will be triggered immediately as the button is down.D,RBoolean
One trigger onlyDefines if the element can be triggered only once. After that all button pressed are ignored till the new activation of the parent event. If false, multiple button presses and triggering are allowed.D,RBoolean



+=== Properties inherited from clElement === Inherited properties of clElement
NameDescriptionConstraintsValue TypeUpon Change
Control
Is EnabledIf set to false the element is completely omitted when the experiment is run.Boolean
TitleTitle of the element.String

The list of Text element properties:

Resource Holder inherited properties

CATEGORY ,Property name Description type Value type
RESOURCE LIST
Resource index The index of item in the resource list that is currently used by the element. Notice, that index starts from 1.D,R,* Int32
Resource count The number of items loaded in the resource list of the element D,R,Read-only Int32

ScrewTurn Wiki version 5.2.0.8. Some of the icons created by FamFamFam.