This article applies to:
This sample illustrates how to control a SlideSlider with the Left and Right Arrow Keys.
The Button device can be set to use the Keyboard in the Button properties > Input Device To Filter. However, this is not customizable. This sample may be useful in studies requiring Keyboard or Human Interface Device (HID) input that require customization of keys.
This sample demonstrates how to move a SlideSlider Indicator based on the keyboard Left and Right Arrow Keys. The Stimulus has an Infinite duration and continues on the Mouse click of the Next button. The Stimulus has a Script Task Event that fires on Keyboard.Press. The Script Task Event checks if it is a key we are looking for (i.e., Left and Right Arrow). If it is, we move the direction specified by a value of 1.
NOTE: The Mouse can also manipulate the Slider as the Input Device To Filter remains set to the Mouse.