How to make multiplayer game with different controller for each player by C++?

I want to make a multiplayer game, which can let two people play together. I want to set a controller with arrow button and another controller with WASD for each of two people. How can I do that?

Closing this question as a duplicate of