- From: Mikkel Staunsholm <staunsholm@gmail.com>
- Date: Thu, 1 Aug 2013 11:31:42 +0200
- To: public-webapps@w3.org
Received on Sunday, 4 August 2013 11:53:13 UTC
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...
Received on Sunday, 4 August 2013 11:53:13 UTC