Forums > MaxMSP

Games Controller

May 10 2010 | 2:17 pm

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.

May 10 2010 | 3:27 pm

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:

May 10 2010 | 4:25 pm

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

May 10 2010 | 8:29 pm

-- 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.

May 10 2010 | 10:00 pm

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. --

May 10 2010 | 10:45 pm

Worked a treat! Brilliant, thank you!

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP