If the USB encoder makes all 7 buttons available, then you can navigate the UI and start games so it should be possible to make EmulationStation use it. As for the 2nd Player, you can use advmame for arcade emulation and it would be possible to split the encoder inputs to both, not sure about how practical it is though.