Group: Forum Members
Posts: 8,
Visits: 1
|
I needed to allow a given trial to accept mouse and keyboard input. While this functionality would seem like a good feature to have, I was inquiring about it for a less obvious reason.
Basically, I needed to allow Inquisit to expose the mouse cursor during trials that accept keyboard input. My research requires participants to respond by simply moving the mouse up, down, left, or right - without ever clicking a mouse button or pressing a key. Since Inquisit does not support this type of directional-based mouse input for a response, I wrote a program that hooks into the mouse and keyboard at a low, system-wide level. This program sends keyboard presses when the mouse is moved. However, I initially couldn't get it to work with my Inquisit script (which simply shows a random "slide show" of video clips and takes a keyboard response). After exploring different things, it turns out that my little program WAS in fact working, but that the mouse was apparently disabled by Inquisit when my script ran. I discovered this after finding out that my program was able to send keys to trials that allow the mouse to be on-screen (e.g, Likert scale trials). In the end I was able to get it to work by converting all my trials to Likert trials and changing my program to send a number plus the enter key when the mouse was moved: Up=1+Enter, Down=2+Enter, Left=3+Enter, Right=4+Enter. I also hid the text labels that the Likert trials show to a position off-screen. Now everything seems to work well and I can gather data for my dissertation!
|