# track USB Joystick trace

**URL:** <https://psychtoolbox.discourse.group/t/track-usb-joystick-trace/522>\
**Category:** Uncategorized\
**Created:** [February 22, 2011, 9:09pm UTC](https://psychtoolbox.discourse.group/t/track-usb-joystick-trace/522 "2011-02-22T21:09:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [February 22, 2011, 9:09pm UTC](https://psychtoolbox.discourse.group/t/track-usb-joystick-trace/522/1 "2011-02-22T21:09:15Z")

</div>

Hi,  
does anybody know how to display and track the trace of a joystick (similar to a mousetrackball trace) using Psychtoolbox on Mac? Is there any Demo script ? I would like to track Joystick movements into 8 different directions on a computer screen (left, right, up, down, up left, up right, dow left, down right).  
Thanks for any help,  
Liane.

---

<div class="post-metadata">

**Author:** ![adwkiwi](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adwkiwi](https://psychtoolbox.discourse.group/u/adwkiwi)\
**Post date:** [March 3, 2011, 1:55pm UTC](https://psychtoolbox.discourse.group/t/track-usb-joystick-trace/522/2 "2011-03-03T13:55:00Z")

</div>

I've never used it because I'm PC based\*, but the PTB for Mac implements 'GamePad', the human-interface device reading bit of the Mac OS. If you search the PTB help for GamePad you should have access to everything you need.  
-andrew  
  
\*Well, I used it briefly while some colleagues were still on Macs. It's fairly straightforward, it's just been years since I looked at it :)  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), "Liane" \<liasine@...\> wrote:  
> \>  
> \> Hi,  
> \> does anybody know how to display and track the trace of a joystick (similar to a mousetrackball trace) using Psychtoolbox on Mac? Is there any Demo script ? I would like to track Joystick movements into 8 different directions on a computer screen (left, right, up, down, up left, up right, dow left, down right).  
> \> Thanks for any help,  
> \> Liane.  
> \>
