Assign player number to an specific usb port

Hello,

I have a x96 max+ tv box using EmuELEC with two wired controllers. Sometimes the player number one are assigned to certain controller connected to a certain usb port and sometimes in other. Is there a way to force the assignment the player number index to a certain usb port? Maybe with some udev rules or so.
Thanks