JDizzle383
Member
How would I go about assigning a gamepad to a specific player as follows without saying gamepad_get_device(0):
Gamepad 0 = Xinput
Gamepad 1 = Xinput
Gamepad 2 = no more Xinput connected, search for DirectInput and assign it to the empty player slot
Gamepad 3 = Xinput connected after the DirectInput was, so give this player an Xinput, and then search for more
Gamepad 4 = connected another DirectInput, so assign it to this player slot
Gamepad 5 = fourth Xinput is connected, assign it to the player 5 slot
Gamepad 6 = DirectInput
Gamepad 7 = DirectInput
Gamepad 8 = DirectInput
Gamepad 9 = DirectInput
Gamepad 10 = DirectInput
Gamepad 11 = DirectInput
To be clear I don't want to assign the numbers to the pads until they are connected, and the first one to be connected shows up as P1, the second as P2, third as P3 and so on regardless of the type of controller assigned to that specific slot. I tried assigning P1 to Gamepad 0 but then if I got to assign a direct input it gives me an error that slot 4 has not been declared due to it looking for a 5th player instead of the "next player in the connected controllers queue."
Gamepad 0 = Xinput
Gamepad 1 = Xinput
Gamepad 2 = no more Xinput connected, search for DirectInput and assign it to the empty player slot
Gamepad 3 = Xinput connected after the DirectInput was, so give this player an Xinput, and then search for more
Gamepad 4 = connected another DirectInput, so assign it to this player slot
Gamepad 5 = fourth Xinput is connected, assign it to the player 5 slot
Gamepad 6 = DirectInput
Gamepad 7 = DirectInput
Gamepad 8 = DirectInput
Gamepad 9 = DirectInput
Gamepad 10 = DirectInput
Gamepad 11 = DirectInput
To be clear I don't want to assign the numbers to the pads until they are connected, and the first one to be connected shows up as P1, the second as P2, third as P3 and so on regardless of the type of controller assigned to that specific slot. I tried assigning P1 to Gamepad 0 but then if I got to assign a direct input it gives me an error that slot 4 has not been declared due to it looking for a 5th player instead of the "next player in the connected controllers queue."