The number of the port that generated the last event.
<xid>
xid.name.lastEventPort
Read Only
integer
This property allows a script to determine whether an event was generated by a button press (port number is 0) or an incoming TTL signal from one of the ports of a Response Pad (port number 1 or 2).
The following displays the value of lastEventPort in a text stimulus:
<text myText>
/ items= ("height = <% xid.lastEventPort %>")
</text>