I'm writing an Ubuntu application for stereoscopic augmented reality using a head mounted display and a DS3 sixaxis in place of traditional mag tracers for head tracking:

To save myself a lot of extra work I would like to use the keyboard for translational movement and the mouse for rotation much like in a video game. This way I would just have to map the motion sensors from the sixaxis to the appropriate keys.
Does anyone know of software that can do this? Since I've got the controller already paired and jtest is detecting the motion sensors, I think I could use any package that can map a gamepad to the keyboard but I'm not certain on this.