A class implementing a TouchScreenButtonBox.
Methods
Initialize a touchscreen button box.
Parameters : | button_fields : visual Expyriment stimulus or list of stimuli
stimuli : visual Expyriment stimulus or list of stimuli, optional
background_stimulus : visual Expyriment stimulus, optional
|
---|
Notes
Every visual Expyriment stimulus can serve as a touchscreen button field. If the TouchScreenButtonBox is presented, it can be checked for events using the methods ‘check’ and ‘wait’.
Add a touchscreen button fields.
Parameters : | button_field : visual Expyriment stimulus |
---|
Add additional stimulus
The added stimulus will be presented together with the button fields.
Parameters : | stimulus : visual Expyriment stimulus |
---|
Getter of background stimulus.
Background stimulus, on which the button fields and the additional stimuli will be presented. (visual Expyriment stimuli)
getter of button fields (list of visual Expyriment stimuli)
Check if a button field is clicked.
Parameters : | button_fields : Expyriment stimulus or list of stimuli, optional
check_for_control_keys : bool, optional
|
---|---|
Returns : | pressed_button_field : Expyriment stimulus or list of stimuli, optional
touch_time : integer
|
Notes
Don’t forget to show the TouchScreenButtonBox.
Clear the event buffer of the touchscreen/mouse input device.
Create the touchscreen buttonbox.
Prepares the button fields and additional stimuli for fast presentation.
getter for the last touch position (x,y)
Getter for logging.
Set logging of this object on or off
Parameters : | onoff : bool
|
---|
Notes
See also design.experiment.set_log_level fur further information about event logging.
Present touchscreen buttons.
getter of additional stimuli (list of visual Expyriment stimuli)
Wait for a touchscreen button box click.
Parameters : | button_fields : Expyriment stimulus or list of stimuli, optional
duration : int, optional
|
---|---|
Returns : | pressed_button_field : Expyriment stimulus or None
rt : int
|
Notes
Don’t forget to show the TouchScreenButtonBox.