Using accelerometer to control computer games?

How do I use the accelerometer in Arduino Esplora to control computer games as if the Arduino Esplora is a tablet? I controlled a game on a tablet by tilting the tablet.

You can check the game I ported to the Esplora which uses the accelerometer. Writeup is at The 21st Century Digital Home: First Self-Contained Arduino Esplora Game
and the code at GitHub - TheKitty/EsploraApps: Applications for the Arduino Esplora

The game saves all the values: x, y, and z but I think it actually only processes the x values - if you shake one way it moves the ball in the direction of the shake along thepositive or negative x axis. It uses the Esplora.readAccelerometer function, documentation at http://arduino.cc/en/Reference/EsploraReadAccelerometer. I found that the movement was opposite of what the Esplora library thought was positive so I multiplied by negative one to change it.

If you've done accelerometer controlled gaming/programming before, it is straightforward. I hope this helps.