Source: https://android.gadgethacks.com/how-to/game-turns-second-android-device-into-tennis-racket-wiimote-style-0160868/