Doesn't pc2jamma uses joystick button presses? Have you tried to change the "CORE INPUT OPTIONS" and "CORE INPUT AUTOMATIC ENABLE OPTIONS" to use your joystick in the mame.ini? Other think to do is: press tab to change "input (general)" and "input (this game)" settings.