Forums > MaxMSP

Sending data to a gamepad ???

July 6, 2010 | 6:08 am

Getting data from a usb device such as a gamepad is easy with [hi] object, but is there a way to actually SEND data as easily ?

As a lot of gamepads have this vibration (or "rumble") function, and i’d like to be able to launch it from max.


July 6, 2010 | 7:45 am

My guess is that the tactile feedback is waaaay inside of the loop of the design that sends the basic output and you’re going to have to hack the circuit to get at it (and find a way to do that with Max output) unless there’s some kind of slightly more exotic controller out there used in, say, an online multiplayer environment where the game lets you vibrate someone else’s pad. But it’s just a guess.

July 6, 2010 | 2:10 pm

It’s a little tricky to send data, because the device has to be set up for it. We did this for Jeff Snyder’s manta, but both the manta itself and the code had to work together for data-sending.


July 9, 2010 | 3:58 pm

I thought it was in the domain of possible…. If a gamepad has got this rumble thing, it means it’s designed to get some info from a game/program ???
Might contact some game developers :)

July 9, 2010 | 4:05 pm

Sending data is part of the HID specs. Max’s [hi] object does not support it (unless this has changed in Max 5, which I doubt). So in theory (and if your device is completely HID conform) you can send a value to the device that determines the speed of the internal motors which generate the rumble. Some details can be found in a NIME paper from 2007:


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