Sending data to a gamepad ???

Jul 6, 2010 at 6:08am

Sending data to a gamepad ???

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.


thanks

#51239
Jul 6, 2010 at 7:45am

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.

#183766
Jul 6, 2010 at 2:10pm

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.

brad

http://music.columbia.edu/~brad

#183767
Jul 9, 2010 at 3:58pm

Awrite
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 :)

#183768
Jul 9, 2010 at 4:05pm

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: http://www.nime.org/2007/proc/nime2007_375.pdf

Olaf

#183769

You must be logged in to reply to this topic.