I have the GOG version of Hollow Knight and i play using a Dualshock 4 (PlayStation 4) controller, remapped via AntiMicroX to send keyboard inputs instead of controller inputs.

I have it set up this way because Hollow Knight doesn’t support this controller. That is, it supports it enough to know that i have a controller plugged in and to sometimes override my controls with the default gamepad controls, but it doesn’t support it enough for me to rebind controls or consistently rely on controller input.

The game is unplayable with some buttons changing at random times, so i’d like to either make it work with my controller or make it ignore my controller. I’m fine with installing a mod for this if i have to, but at a glance i couldn’t find any mods for this. Is there a way to make this work?

Alternatively, what would i change in ~/.config/unity3d/Team Cherry/prefs to disable all the buttons on this controller?

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 days ago

    I don’t know whether Hollow Knight uses an input library (like SDL) that would allow controller tweaks, but it might be worth investigating.

    Steam generally gets games with poor/rigid controller support to work via Steam Input, which creates a virtual device that behaves like an Xbox controller and maps the real controller’s inputs to it. You’re not using Steam, but this project does the same sort of thing, and might be helpful:

    https://github.com/chrippa/ds4drv

    I don’t know if it’s still maintained, but if it chokes on a new distro, one if its forks might work.

  • moonpiedumplings@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 days ago

    Okay. This sounds very strange, but I had a similar issue with the nintendo switch pro controller and binding of isaac. I played around with antimicrox, but the real solution I found was to launch steam and leave it running. Then, my pro controller would magically work.

    I didn’t have to launch the game via steam either, which is what made it even stranger to me.

  • over_clox@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 days ago

    I don’t know what sort of background service you’re using to convert game controller inputs to keyboard inputs, but I’m definitely curious, like what software/service are you attempting to use for that?

    With that said, try this… Try starting the game with the controller disconnected, and then only after starting the game, then connect the controller.

    I don’t know about your particular configuration, but in my experience, if there’s no controller connected when you start the game, then the game won’t see game control inputs after connecting a controller. But the background service most likely will see the controller and act strictly as a virtual keyboard device.

    Please oh please keep me updated and let me know if this advice works, I’m very curious but don’t have your game or exact setup to test it on…

    • IndigoGolem@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 days ago

      I’m using AntiMicroX. This doesn’t work though. Hollow Knight picks up on the controller pretty soon after it’s plugged in. Sounds like Steam Input will be my best option for now.