/mouse-by-phone

Controle o mouse de seu computador utilizando o giroscópio e acelerômetro do seu smartphone.

Primary LanguageJavaScriptMIT LicenseMIT

Mouse By Phone

Take controll of the mouse position of your computer using your phone's gyroscope and acelerometer.

Running

  1. Install dependences: npm install

  2. Start server: npm start

  3. Go to your-ip:3000 in your phone or use /client as a aplication in your device

How it works?

When the server is started, a node server is created. The server listen to POST messages from the client aplication containing the data from gyroscope and acelerometer of the device. Then, the server calls the mouse-controller module to update the mouse position on screen.