MAME uses the DirectInput enumeration, and the Logitech tool will not work for that. Programs that don't use DI (like MaLa or PCSXR) can benefit from using the Logitech tool before launching the program though.
I can vouch for Dr. V's tool though. Works great.