I spent quite a while on getting Arduino's with XBees running in API mode working with Max/MSP and I used or got inspired by quite some code I found by people sharing it, so here is my finished, working patch for others to use or be inspired by.
It uses the input from a Logitech Wingman joystick to send it to 1 to 4 XBees. Some comments are in dutch but it might be useful anyway. It's called puppetmaster because I used it to control vibrating motors that were attached to actors' limbs to make em behave like string puppets.
Albert van Andel