I checked out the source for SDL Sand, it's just a single file. Porting it is just a matter of remapping the keys and remapping the mouse to the joystick. It does use floats, depending how intensive the computations get it might need to be replaced by fixed point math, proberbly should be done...