Games Controller

owwo87's icon

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

brendan mccloskey's icon

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:
https://cycling74.com/forums/common-max-arcana

Steven Miller's icon

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

owwo87's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

Steven Miller's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

owwo87's icon

Worked a treat! Brilliant, thank you!