So I'd set up a prelim modular input sys, adding as needed components for inputs groups of actions. I knew it wasn't what I was going to want and today I decided to rip it out and use #EnhancedInput for now. But the new input didn't work and the old inputs weren't disabled as I expected and in the log the player character was identifying itself as an instance of a class that hasn't been in the proj for weeks.... Time to back away from the computer! 😹 #gamedev #UnrealEngine

Before: InputAction has Key output. Just use it.

New, better way: Create custom function to take output of Enhanced InputAction. After casting the controller to the player controller or Self, get the EnhancedInputLocalPlayerSubsystem and attach it to the Target pin of QueryKeyMappedToAction which takes the input of your function as its Action. Then loop across the mapping it returns calling IsInputKeyDown on each until True. Return indicated array element.

#UnrealEngine #UE5 #EnhancedInput

Re-wrote my menu system twice btw, because I wasted a whole month with #CommonUI which I had to give up on in the end. I have no idea why it wasn’t made compatible with #EnhancedInput in #UE5 from the start. I don’t even think it’s possible to write a game where two players share a keyboard… 😵‍

PS. I don’t use the built in focus support in #UMG either because it was too rudimentary for even this! 🙃

PPS. Before someone points out that there’s probably a solution in C++ my brain is unfortunately not compatible with that. It’s Blueprints or not doing any game development at all, for me. 🧠

#Zachtronics has prepared me... I am ready to #Swizzle some inputs!

#UnrealEngine #EnhancedInput

Trying to use #UE4's #EnhancedInput for debug to capture Ctrl+Shift+C and not collide with C character menu. And wow is it a pain in the butt. I actually had it working and firing repeatedly, but in trying to rework it for single fire, it's no longer working at all. #gamedev

That is, even throwing out the thing that didn't work, and trying to recreate the thing that did work, I can't even get the original thing to work again. 😂😭