psychopy.iohub.util.DeviceEventTrigger

class psychopy.iohub.util.DeviceEventTrigger(device, event_type, event_attribute_conditions={}, repeat_count=-1, trigger_function=<function <lambda> at 0x0555EAF0>, user_kwargs={})

Bases: psychopy.iohub.util.visualUtil.Trigger

DeviceEventTrigger are used by SCreenState objects. A DeviceEventTrigger associates a set of conditions for a DeviceEvent that must be met before the classes triggered() method returns True.

__init__(device, event_type, event_attribute_conditions={}, repeat_count=-1, trigger_function=<function <lambda> at 0x0555EAF0>, user_kwargs={})

Methods

__init__(device, event_type[, ...])
clearEventHistory()
getTriggeredStateCallback()
getTriggeringEvent()
resetLastTriggeredInfo()
resetTrigger()
triggered()

Attributes

device
event_attribute_conditions
event_type
repeat_count
trigger_function
triggerred_count
user_kwargs