Welcome! Log In Create A New Profile

Advanced

Limiting joystick/cursor movement to pathways

Posted by CEBpitt4401 
Limiting joystick/cursor movement to pathways
January 21, 2025 05:01PM
Is there any simple way I could possibly limit the movement of the joystick &/or cursor to a certain pathway or shape like an upside-down T (see attached image). Thanks in advance for any help or ideas!

Re: Limiting joystick/cursor movement to pathways
January 22, 2025 12:51PM
You can use the custom calibration function. See this manual page.
https://monkeylogic.nimh.nih.gov/docs_CoordinateConversion.html

There is also an example task of this in the "task\runtime v1\8 customized calibration\" directory.
Re: Limiting joystick/cursor movement to pathways
January 24, 2025 11:56PM
I wrote an example task for you. This example requires you to define the boundaries of the pathways with non-overlapping rectangles. See the code in the attached file.
Attachments:
open | download - joy_nav.zip (1 KB)

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.