Nearly continuous flow of keyboard input ?
Hello,
Do you know about a way to program a script that would produce a nearly continuous keyboard input using a keyboard_response element ? The goal is to allow to display smoothly a sequence of successive images sampled from a video sequence by keeping a key pressed. That simulated continuous movement would stop by releasing the key and restart by pressing again, and the sequence would loop continuously as long as the key is pressed. The reason for implementing that process is that the usual operation of a keyboard_response element requires to press the key for each image of the sequence, which is very tedious when the sequence is rather long.
Thanks in advance for any idea or suggestion.
Gérard
Comments
Hi Gerard,
Before suggesting overly complicated things, have you checked out the key release functionality? https://osdoc.cogsci.nl/3.3/manual/python/keyboard/#function-keyboardget_key_releaseresp_args
Perhaps that would be enough for you.
Eduard