KyleRansford
Member
Hello,
While I was testing out the Xbox Series Controller in my game, at first I saw that it was working the way it should, but later on I noticed that I think it's actually registering as 2 separate devices. At first, I thought it might just be the way I had my controller setup working, since I check for the Description then set mapping. Since I saw in the debug log that it is showing 2 descriptions. "XInput STANDARD GAMEPAD" and "Bluetooth LE XINPUT compatible input device". Also, the "Bluetooth LE XINPUT compatible input device". shows it connects to slot 4. So, the 2nd device is Direct Input? They both usually connect at the same time and 1 controller controls both player 1 and player 2.
I just tested it with the "Twin Stick Shooter GML" project by YoYo Games and it appears it is registering as 2 sperate devices, since in the Twin Stick project, each time a controller is connected, a player object is created. So, instead of creating just 1 player object, 2 are created when connecting the Xbox Series Controller. I don't have another controller connected without knowing since it doesn't show any others are connected. I attached an image of what it shows on screen.
How could this be fixed? One way I know of, would be to say something like: if gamepad_get_description(i,) doesn't equal "Bluetooth LE XINPUT compatible input device" then assign to player.
Has anyone else noticed this?
While I was testing out the Xbox Series Controller in my game, at first I saw that it was working the way it should, but later on I noticed that I think it's actually registering as 2 separate devices. At first, I thought it might just be the way I had my controller setup working, since I check for the Description then set mapping. Since I saw in the debug log that it is showing 2 descriptions. "XInput STANDARD GAMEPAD" and "Bluetooth LE XINPUT compatible input device". Also, the "Bluetooth LE XINPUT compatible input device". shows it connects to slot 4. So, the 2nd device is Direct Input? They both usually connect at the same time and 1 controller controls both player 1 and player 2.
I just tested it with the "Twin Stick Shooter GML" project by YoYo Games and it appears it is registering as 2 sperate devices, since in the Twin Stick project, each time a controller is connected, a player object is created. So, instead of creating just 1 player object, 2 are created when connecting the Xbox Series Controller. I don't have another controller connected without knowing since it doesn't show any others are connected. I attached an image of what it shows on screen.
How could this be fixed? One way I know of, would be to say something like: if gamepad_get_description(i,) doesn't equal "Bluetooth LE XINPUT compatible input device" then assign to player.
Has anyone else noticed this?