We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › SIXAXIS with procontroll
Page Index Toggle Pages: 1
SIXAXIS with procontroll (Read 1206 times)
SIXAXIS with procontroll
Aug 29th, 2007, 9:31pm
 
Has anyone been able to get a PS3 Sixaxis controller working with procontroll? the data i was able to get from the procontroll library was this

PLAYSTATION(R)3 Controller has:
4 sliders
19 buttons
2 sticks

<<< available PLAYSTATION(R)3 Controller sliders: >>>

    0: x absolute
    1: y absolute
    2: z absolute
    3: rz absolute

<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<<< available PLAYSTATION(R)3 Controller buttons: >>>

    0: 0
    1: 1
    2: 2
    3: 3
    4: 4
    5: 5
    6: 6
    7: 7
    8: 8
    9: 9
    10: 10
    11: 11
    12: 12
    13: 13
    14: 14
    15: 15
    16: 16
    17: 17
    18: 18

<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<<< available PLAYSTATION(R)3 Controller sticks: >>>

    0: y x
    1: rz z


However, accessing it through the normal methods does not work. Could this have something to do with how the PS3 assigns a controller number to the device between 1-4?

any help would be greatly appreciated.

Re: SIXAXIS with procontroll
Reply #1 - Jan 10th, 2008, 5:18pm
 
yeah i got this working, are you sure the pad works right at all? it took me a couple of goes to install it correctly. plug the pad in, click libusb-win32-filter-bin-0.1.10.1.exe, then ps3sixaxis_en.exe, it should open say something about some busses and an email address and then close, then press the playstation button and use the test application. then procontroll seemed to work (i got values from one of the sliders as I waggled it). before i used libusb it didn't.

best of luck
Re: SIXAXIS with procontroll
Reply #2 - Jan 10th, 2008, 5:22pm
 
Ok.. Sounds good the only problem is I am using a mac. Do you know if that lib-usb driver is available for a mac?
Re: SIXAXIS with procontroll
Reply #3 - Jan 10th, 2008, 6:05pm
 
google "ps3 controller on mac" says

http://tattiebogle.net/index.php/ProjectRoot/Ps3Controller

or is that the driver your using ?

if it works then i found the buttons mapped like this(though this was on the pc so judging by your earlier post's procontroll output it might be different)

0 = select
1 = L3
2 = R3
3 = Start
4 = up d pad
5 = right d pad
6 = down d pad
7 = left d pad
8 = L2
9 = R2
10 = L1
11 = R1
12 = triangle
13 = circle
14 = x
15 = square
16 = playstation button

slider 0 = right thumbstick y axis, -1 fully forward, 1 fully back
slider 1 = right thumbstick x axis, -1 fully left, 1 fully right
slider 2 = left thumbstick y axis, -1 fully forward, 1 fully back
slider 3 = left thumbstick x axis, -1 fully left, 1 fully right
Page Index Toggle Pages: 1