up Inquisit Language Reference

lastEventAction property

Indicates whether a button was released or pressed on a Cedrus Response Pad.

Member of

<xid>

Syntax

xid.name.lastEventAction

Read Only

Type

boolean

Remarks

This property returns 1 if the button was pressed, or 0 if the button was released or the event was generated from a TTL signal rather than a button.

Examples

The following defines any button press as a valid response:

<trial example>
/ isValidResponse = {return xid.responsebox.lastEventAction == 1;}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.