On Thu, Aug 1, 2013 at 2:31 AM, Mikkel Staunsholm <staunsh...@gmail.com> wrote: > Been toying with adding rumble to the gamepad api. Something like: > > partial interface Gamepad { > Rumbler[] getRumblers(); > }; > > interface Rumbler { > readonly attribute DOMString id; > > void start(double strength, double periodInMilliseconds); // > leave out period to rumble indefinitely > void stop(); > }; > > Any comments on that? > Should it resemble the vibrations api more (with patterns, and turning it > off by setting strength to 0)? > Should it be in the vibrations api instead (I don't think so)? > > Regards, > Mikkel Staunsholm > @staunsholm > > > PS! I don't know if it is possible/feasible to make rumbling work on > osx/linux - fx. JInput doesn't report any ps3 rumblers on osx...
It seems pretty clear to me that controller rumbling should be as closely matched with phone vibration as possible. ~TJ