I believe python and pygame are built in, and there's some good python tutorials on the net.
Here's a pygame tutorial that might be a starting point. It uses the mouse though, so it won't be directly applicable to the gp2x, but it's something to look at to see if it's something you might want...