The team behind Hover, a gesture input device, have put together a tutorial, which uses a Pi in conjunction with an Arduino Leonardo, which guides you through using a Hover board to be a controller for PiMame/PiPlay. Take a look at the tutorial here. You can buy a Hover from The Pi Hut.