Sadly this leaves me with no way of actually testing the code
I've some source code I could send you if you like?
Its quite nasty but DOES give you variables like joy_up (0/1) to work with... if you wanted a copy, I could tidy it up, comment it a bit and send it to you?
I DO own a JagPad so I know the source is reliably working, one of the reasons I coded my game to support JagPads is because I own one
Just quote me here and let me know ... happy coding!