Sorry for the late reply.
Thanks to the documentation and after some research from my side, I have put the command in the file :
Now it is ok.
@unscathed Did you set whatever is needed to use trackballs in controls and/or core options ? I'm pretty sure mame2003+ supports trackballs as long as you set it properly. For reference, FBNeo requires changes in Quick Menu > Controls (device types).