I have programmed a short task which presents an image file along with vibration. I am specifically trying to assign the vibration to take effect and commence when clicking on the stimulus.
I using my andriod phone, but it will be used for tablets.
I have already included vibrations in my task. So that is not the issue. I am trying to assign the vibrations to be assigned to a visual object and double clicking the image should stop the vibrations and record it as response to move onto the next trial.
I am trying ways to achieve this by assigning the vibrations to mouse.Click function.
Recording a double click is tricky in PsychoPy. You would need to record the time of a mouse button pressed, then note it being not pressed and pressed again within a given time frame. It would be much easier to vibrate on hover and then stop on a click.