Rune580 / LethalCompanyInputUtils

GNU Lesser General Public License v3.0
12 stars 5 forks source link

Controller/keyboard binds not changing if they default to "" #22

Closed KlutzyBubbles closed 5 months ago

KlutzyBubbles commented 5 months ago

Read and fill in the following:


Versions InputUtils Version: ex: 0.6.0 Lethal Company Version: ex: v49

Describe the bug In game controller/keyboard binding getting cleared on custom keybinds (in game keybinds stay changed) that default to nothing in my mod BetterEmotes.

To Reproduce Steps to reproduce the behavior:

  1. Install BetterEmotes
  2. Launch game (default settings)
  3. Go to settings (either in game or in main menu) -> Change Keybinds
  4. Change a controller/keyboard input that doesn't already have a default
  5. Confirm changes and go back to the main menu
  6. Go back into Change Keybinds and the input is blank again

Expected behavior Keybind stays changed

Logs There are simply no logs when any of the steps are done, unless im missing an option somewhere, my bepinex is set to all logs

ModPack Code or File 018d4b24-3701-a35e-3617-c40f3f7c7925

Additional context Not sure if its an issue with the way i have it implemented but for extra information, this is how i have implemented it https://github.com/KlutzyBubbles/lc-better-emotes/blob/lcvr-compat/BetterEmote/Utils/Keybinds.cs

Rune580 commented 5 months ago

This was something I fixed with the attribute style api, but I forgot to do the same for the runtime/builder api.

Rune580 commented 5 months ago

Could you try again with the artifact from the PR and let me know if the issue is still present. https://github.com/Rune580/LethalCompanyInputUtils/actions/runs/7679068148