-
Notifications
You must be signed in to change notification settings - Fork 3
Description
The AirBender / double jump functionality seems to not be working for me when using a controller. Using the space button to jump works fine, but the controller doesn't show any indication it's trying the double jump (no sound effect, no eitr or stamina bar flash if I don't have enough of those, etc).
I haven't done any valheim modding before, so I wasn't quite able to get my environment setup right to build the solution yet. Because of that this is completely untested, but looking at the ZInput class there are configurations for adding a "JoyJump" button, so I think the fix may be as easy as editing AirBender.cs to change the two instances of
if (!ZInput.GetButtonDown("Jump")) return;
to
if (!(ZInput.GetButtonDown("Jump") || ZInput.GetButtonDown("JoyJump"))) return;
I would submit a pull request but doing so on code that I haven't even compiled much less tested seems wrong. Plus there may be some other mapping under the hood from JoyJump to Jump that I haven't seen so I could be completely off base.