CC not recognized in Live

I’m making a patch for a friend of mine to be used in Live, to control some stuff with his Logitech extreme 3D joystick. I’m stuck with a a problem related to CCs. I want to assign some cc to the buttons to trig clips, launch scene, activate FX or whatever. I wanted to do this by using ctrlout like, in the attached patch, cc74 to the element 5 of the joystick. The controller is received by Live, I can see it in a midi monitor, but midi mapping in Live doesn’t work. Do I have to do it using Live api and umenus ? (just thought about this when writing this).

– Pasted Max Patch, click to expand. –

Copy all of the following text. Then, in Max, select New From Clipboard.

I was sure this had something to do with this Live limitation but didn’t know how to explain it shortly in english… Thanks grizzle.
So in my patch for an amxd device how can I route this controller to the iac bus ? If I double click on the ‘ctrlout’ object, it doesn’t allow me to choose a midi port as it is the case in Max. The solution is probably simple, but I’m stuck.

Yep – like Broc said – just use the [lh_midiout] instead of the standard [midiout] and the you can use [ctlout] like normal but the IAC bus will appear as a MIDIOUT in the Ableton track your Max Device is on. The [ctlout] object goes through the [lh_midiout] even though it is not connected.