Games Controller

May 10, 2010 at 2:17pm

Games Controller

I am relatively new to Max and am creating a project in which I am using an xbox 360 controller as a MIDI controller in order for the Xbox controller to take over the key commands in Logic.
I have the games controller working fine in both Max and Logic including all the buttons. Want I want to do though is to make the small thumb joysticks only work when the joysticks are pressed in on the controller. The idea being that the joysticks could not be knocked without the buttons being pressed in.
I have split all of the buttons of the controller up through the route object individually and then into the note out which links up with Logic.
Any help would be greatly appreciative.
Owen

#50080
May 10, 2010 at 3:27pm

You won’t get any assistance until you post your patch, or the important extract from it, here on the forum………….

(go Edit Mode/Edit/Copy Compressed) and also go here:

http://cycling74.com/forums/topic.php?id=26095

#179818
May 10, 2010 at 4:25pm

For a very simple thing try this: route the ‘push joystick’ output to control a gate, and then route the joystick through the gate.

#179819
May 10, 2010 at 8:29pm
– Pasted Max Patch, click to expand. –

I tried your idea with the gate but this did not seem to work. This could be my own fault

The X and Y of the joystick are numbers 18 and 19 for joystick 1 and 20 and 21 for joystick 2.
The push joysticks are numbers 13 for joystick 1 and 14 for joystick 2.
Like I said, I am pretty new to Max/MSP to I appologise in advance if I have missed anything basic or obvious.

#179820
May 10, 2010 at 10:00pm

I get different controller numbers than your last message indicated, but here’s a basic patch that works for me.

– Pasted Max Patch, click to expand. –
#179821
May 10, 2010 at 10:45pm

Worked a treat! Brilliant, thank you!

#179822

You must be logged in to reply to this topic.