[Wylug-discuss] Reading accelerometer from web-app
Liam2
cosinusoidaly at yahoo.co.uk
Mon Aug 15 13:53:17 UTC 2011
Looks like someone is prototyping one:
http://weblog.bocoup.com/javascript-firefox-nightly-introduces-dom-joystick-events
Liam
----- Original Message -----
From: Paul Brook <paul at codesourcery.com>
To: wylug-discuss at wylug.org.uk
Cc:
Sent: Thursday, 4 August 2011, 17:57
Subject: [Wylug-discuss] Reading accelerometer from web-app
Anyone know if it's possible to access input devices such as accelerometers or
joysticks from a web application, i.e. javastript running in a browser?
Primarily interested in Firefox, maybe chrome, on a linux host. It's a custom
web-app that can be controlled either via keyboard, or via custom motion
sensors. I'm writing the driver for the input device, so am flexible on the
exact API. Browser plugins acceptable, but not ideal. Ideally I'd get full
3D direction information, but simple button presses are better than nothing.
Plan B is to make the device appear as a keyboard and send keypresses
(probably the same ones a user without the sensor hardware would use).
Obviously this is sub-optimal as the sensors are liable to cause havoc it left
enabled when switching to a different application.
Paul
_______________________________________________
Wylug-discuss mailing list
Wylug-discuss at wylug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/wylug-discuss
More information about the Wylug-discuss
mailing list