Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Simultaneous mouse and keyboard listening?

Hi there. I'm pretty sure this is simple enough using the right code but I'm kinda new to Python and I haven't been able to set this up in the GUI.

I am doing a task where the subject estimates the position of a number in the number line, by touching first at zero and then at the target position. After doing that, by pressing the spacebar they get a feedback with their response.

My problem is that the mouse is only listening for the first click (target click. The touch zero is alright) and then the keyboard element starts listening, disabling the mouse response element, thus disabling the possibility to update the "final answer" so to speak.

I feel like the solution involves combining both within an inline script, but I haven't fully grasped how the get_key/mouseclick functions work.

Sign In or Register to comment.