I've used SDL (Simple Direcmedia Layer) alongside OSG with success (for the Joystick you mentioned as well as gamepads, etc.). SDL is lightweight and simple to use.
http://www.libsdl.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org