Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Playstation Controller mapping

Share your components here. First one to 100 wins!

Playstation Controller mapping

Postby ben » Thu May 07, 2009 6:10 pm

This component is for using a PS2 Dualshock or Dualshock2 controller as an input device for TouchDesigner. It is the mapping is based on the Red Octane PS2-USB adaptor, which unfortunately is becoming increasingly hard to find. Other adaptors will work fine but may require slight mapping changes inside the component to map the controls to the correct channels.

For more information see this wiki article: Playstation2 Controller

You will need:
- a PS2 Dualshock(2) controller
- a PS2-USB adaptor
- v this component! v

PS2dualshock.tox
(1.61 KiB) Downloaded 388 times
User avatar
ben
Staff
 
Posts: 2092
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Playstation3 Controller mapping

Postby ben » Fri Jun 12, 2009 3:22 pm

This component is for using a PS3 Sixaxis or Dualshock3 controller as an input device. I requires the use of the following driver: PS3-Windows driver No motion controls supported at this time, if someone finds a Windows driver that supports the Sixaxis motion sensors, I will gladly update this component.

You will need:
- a PS3 Sixaxis or Dualshock3 controller
- USB mini-B cable to connect the controller to the computer
- the PS3-Windows driver
- v this component! v

PS3sixaxis.tox
(1.43 KiB) Downloaded 364 times
User avatar
ben
Staff
 
Posts: 2092
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Playstation Controller mapping

Postby quine » Mon Jun 22, 2009 5:00 pm

ha! thanks. works like a charm. are the constant and replace chops just to ensure to go back to 0?
---
cQ
User avatar
quine
 
Posts: 146
Joined: Mon Sep 29, 2008 11:31 am

Re: Playstation Controller mapping

Postby ben » Tue Jun 23, 2009 3:17 pm

The Constant and Replace CHOPs are there so that if you ever start up your file without the controller connected, then the channels are still coming out of the component with some default (zero) values. If all the channels disappeared, your networks might error, or loose some connections. This Constant and Replace CHOP trick is great to use wherever you need to make sure channels are always present. Whenever a channel is missing, the Replace CHOP reverts to the default value for that channel defined in the Constant CHOP.

Glad you found it useful, Xbox and Wii remote coming soon!
User avatar
ben
Staff
 
Posts: 2092
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Playstation Controller mapping

Postby ben » Mon Nov 30, 2009 5:34 pm

I've created this extra component that woks in conjuction with the two Playstation Dualshock components above. It basically adds the ability to run a script for each button on the controller.

Connect the output of the dualshock components above to the input of this dualshockevents.tox component. Then inside there is a Text DAT for each button down and button up event. You can add any script to these events, allowing for more complex behaviors to be triggered by the buttons.

Hope someone finds this useful, enjoy!

dualshockevents.tox
(1.25 KiB) Downloaded 313 times
User avatar
ben
Staff
 
Posts: 2092
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Playstation Controller mapping

Postby Raf » Thu Jan 14, 2010 11:25 am

Thanks ;] , just in the case if some one will found troubles with sixaxis connecting - like me ;]
http://davieslim.wordpress.com/2008/07/ ... n-windows/

Good method in my opinion is BTSIX + PPJOY + SixAxisDriver.exe (not libusb-win32).
No cable and motion sensors/analog buttons are available in this method.
You need to correct mapping in PPJoy and in Touch depends on your needs but benefits are nice;]
Also you can try GlovePie for remapping.
Raf
 
Posts: 80
Joined: Fri Jul 17, 2009 2:22 pm

Re: Playstation Controller mapping

Postby ben » Thu Jan 14, 2010 2:52 pm

Thanks Raf, I was looking for a bluetooth solution. I'll post an updated Sixaxis component soon!
User avatar
ben
Staff
 
Posts: 2092
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Playstation Controller mapping

Postby hunt.casey » Thu Mar 29, 2018 11:42 pm

Hey Folks,

I've packaged a .tox for a PS4 controller using the DS4Windows drivers.
https://github.com/Jays2Kings/DS4Windows

It is a very humble contribution that's based completely on the previous two .tox files in this thread. I found that the controller mappings were a little different with these drivers, and thought if anyone out there wants this, maybe it'll save them a few minutes of fiddling. It was a helpful learning exercise for me :)

Also, I know the last post here was YEARS ago, but if @ben or anyone else feels so inspired, the DS4Windows drivers expose the Gyro and Accel readings, the touchpad, as well as the lightbar. (pic of driver interface attached)

Screenshot 2018-03-29 22.30.01.png
Screenshot 2018-03-29 22.30.01.png (114.63 KiB) Viewed 579 times


Hope someone finds this of value.

-Casey
Attachments
PS4dualshock4_.tox
(1.38 KiB) Downloaded 15 times
hunt.casey
 
Posts: 10
Joined: Sat Feb 03, 2018 10:35 pm

Re: Playstation Controller mapping

Postby ben » Fri Apr 13, 2018 9:28 pm

Thanks Casey I've been meaning to do this as I also run DS4Windows drivers now.
User avatar
ben
Staff
 
Posts: 2092
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto


Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 2 guests