This problem is doing my head in

,
got some simple digital HID usb foot switch pedals so i can play driving games without having to hold down buttons.
in windows xp its picks up the pedal inputs in notepad, word etc..as a simple key stroke (c) no problems, but in mame (146) it doesn't always pick up the pedal pushes. If i keep repeatedly pushing the pedal it will eventually resgister a button assignment as KBD C but these seems random and when it comes to playing the game nothing happens when i press the pedal switch.
i even tried an older version of mame (085) still the same during game play it won't register an input.
i thought it should just be an usb keyboard input afterall it works fine in notepad.
i've done some googling and my heads in a pickle now, is it to do with the timing of the hid input or a windows issue? i read something about directinput and rawinput in mame, i'm not sure what this is but from what i read trying the old version of mame would of ruled this out.
PLEASE HELP
