PeterOEMaeggard
Member
Hi.
Problem: I'm having problems using 2 gamepads on a Windows machine, as Windows keeps switching their slot numbers. Is there a way to control this in GM2 rather than Windows?
Background: I've made an arcade machine and added a laptop running Windows 10, where I have installed a game I've made in GM2. The arcade machine uses two simple USB joysticks as gamepads. Every time I boot up the laptop, Windows switches which gamepad is which. Basically, I have to take out the USB for the player 2 gamepad, start the game, and insert it again. It's not a big deal, but I need to solve this, as I will built more arcade machines and use them for teaching math and programming for kids.
To access my gamepad, I use the following code:
Problem: I'm having problems using 2 gamepads on a Windows machine, as Windows keeps switching their slot numbers. Is there a way to control this in GM2 rather than Windows?
Background: I've made an arcade machine and added a laptop running Windows 10, where I have installed a game I've made in GM2. The arcade machine uses two simple USB joysticks as gamepads. Every time I boot up the laptop, Windows switches which gamepad is which. Basically, I have to take out the USB for the player 2 gamepad, start the game, and insert it again. It's not a big deal, but I need to solve this, as I will built more arcade machines and use them for teaching math and programming for kids.
To access my gamepad, I use the following code:
Code:
if gamepad_button_check_pressed(4, gp_face4){
}