Did not tried it myself, but this should work.
You need to install driver for your gamepad. I use this: http://www.motioninjoy.com/download
And then you can use something like "Object Oriented Input System" (google for it, its easy to find).
For communicating with launchpad - most obvious to use a virtual serial port, that is built in it.
For communicate with serial port from your programm - you can use boost::asio lib.
Here is excellent example of how to use it with serial ports:
http://www.webalice.it/fede.tft/serial_port/serial_port.html
Sooo, thats all you need.
All those libraries written for c/c++. Its the only language I know, so I'm sure you can find another, simplier ways. For example - I heard, that python have some awesome serial port support - much simplier than boost::asio.
Good luck with your project! I tried to to something alike, but lost my enthusiasm.