Use your head to control the mouse.
-
Run
node server.js
. -
Use your mobile browser that has an orientation sensor and open the web page.
-
Click “Keep awake” button to go into full screen mode and prevent the screen from sleeping.
(You must enable “Experimental Web Platform” features in
chrome://flags
). -
Click “Calibrate” to calibrate the sensor values after 5 seconds delay.
-
To adjust sensitivity, edit server.js (right now, the number is hardcoded)
I built this project in a live coding streaming session.
https://www.facebook.com/dtinth/videos/10210799509137988/
You can see the first working demo at 22:50 into the video, and the last demo with calibration function at 30:50 into the video.