So I want to add controller support to
my game, but Game Maker's gamepad functions only support xinput, apparently, which is only used by Xbox pads. I've heard of a couple ways to do this:
-Using the joystick functions instead of the gamepad ones. This works, but it causes a huge problem with Game Maker where if you call any joystick function, even the one that just checks for the existence of a joystick, after a pad has been disconnected, the game slows to a dead crawl. Is there any way around this? I could just plug in a warning screen like "don't disconnect your PS4 controller or you'll have to restart your machine" but this feels clumsy and annoying to the player.
-Using a program to reinterpret the PS4 inputs as xinput. I see that there's an after-market plugin for this (DS4 for windows) but it doesn't appear to be something I can bundle with the game.
I know there's a way to make this work, because Undertale and Hyper Light Drifter both accept PS4 inputs with zero problems. Anyone done this before?
I could also just say "Xbox controllers only, use anything else at your own risk" but I don't like the fact that Microsoft has promulgated this whole new API for seemingly no reason except to make it more of a pain in the ass to support anything else.