Indeed, my joystick has one dpad and two analog sticks. Here is a link to logitech’s info page for the controller:
@prusr, I performed this config prior to RetroPie being more joystick autoconfig-friendly. It’s possible that the config program has changed parameters slightly as far as what it outputs.
@woodpecker, Those two lines should already be in the config, so I’d consider deleting them and adding something into the MAME config file if you’re only having issues there.