Free build guide
Build a virtual table tennis game
you play with a webcam.

No controller, just a laptop webcam. How the arm tracking, swing detection, ball physics and CPU opponent work, with the full source code. Yours free.