- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 5 Aug 2013 10:11:05 -0700
- To: Mikkel Staunsholm <staunsholm@gmail.com>
- Cc: public-webapps <public-webapps@w3.org>
On Thu, Aug 1, 2013 at 2:31 AM, Mikkel Staunsholm <staunsholm@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
Received on Monday, 5 August 2013 17:11:52 UTC