Don't know if this helps at all, but if you wish to use any controller with any incompatible game (or anything else), an incredibly good program is xpadder ( http://xpadder.com/ ). I got it a long time ago when it was free, but it doesn't cost much and is a very good program. However, it won't help if you still want to make your own application, obviously :)
You could download it here, but i don't know how safe this page is.
if you have played minecraft, then go to %appdata%.minecraft\bin\natives\ and copy/past it ;-)