I've read somwhere that I'd need to include whole SDL ( license restriction or sth). ZenGL joystick handling looks promising though