How do I separate player 1 from player 2?

I have Lakka installed on a raspberry pi 3 and I have mapped player 1 and when I go to map player 2 I notice that they are under the same port number. When I play a two player game in Mame, player 1 controls both players at the same time. Player 2 also controls both players. How can I fix this?