Arrow keys for response

PennController for IBEX Forums Support Arrow keys for response

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5736
    carlap
    Participant

    Hi,

    Is it possible to use the arrow keys to collect subject response? For example, right arrow for ‘yes’, left arrow for ‘no’. If so, how do I enter that into my newKey.

    Thanks!

    #5738
    Jeremy
    Keymaster

    Hi,

    You can use this interface to find the names of non-printable keys that you can use in the Key element: https://keycode.info/

    If you want your Key element to react to keypresses on the left or right arrow, you can do this:

    newKey("pressOnArrow", "ArrowLeft", "ArrowRight").wait()

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.