There are two ways handle more than 1 controller.
A. Every tick loop through each controller registered.
Check for each controller has state with loopindex
B. Provide an Event for each controller. You can set wich controller to check in the param for gamepad input.