W3C home > Mailing lists > Public > public-pointer-events@w3.org > January to March 2016

(horribly hacky) Leap Motion -> Pointer Events demo

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Wed, 30 Mar 2016 00:46:55 +0100
To: public-pointer-events@w3.org
Message-ID: <56FB13EF.8070003@splintered.co.uk>
Possibly of interest: my code is fairly dreadful, but demonstrates the 
(slightly hacky) use of a shim for Leap Motion's proprietary API to then 
fire programmatic Pointer Events (with a made-up pointerType 'leap')


(with thanks to Jacob for inspiration and suggestion to use 
document.elementFromPoint(x,y).dispatchEvent(e) to make this slightly 
more generic/adaptable to other scenarios in future)

Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke
Received on Tuesday, 29 March 2016 23:47:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 29 March 2016 23:47:20 UTC