It is possible, you just need to sacrifice a suitable USB or PSX controller to build the adaptor. Or buy that device that is used for controls in a mame cab, it converts the type of signal from an arcade controller to keyboard inputs PS/2 (I don't know if there is a USB version).
Or buy that device that is used for controls in a mame cab, it converts the type of signal from an arcade controller to keyboard inputs PS/2 (I don't know if there is a USB version).