Attached below are some screenshots of some of my input setups. First is the input action asset where I’m using the Player action map with two different control schemes, Keyboard and Gamepad. They both have the required devices listed and work with my inputs in the actual game.
I want to be able to change some sprites on my UI depending on which input device was last used (even if both are plugged in), but all solutions that I’ve tried ([link1]( Detect most recent input device/type? #:~:text=As%20for%20detecting%20the%20most,event%20received%20for%20the%20device.), link2) don’t work. I’m guessing its something to do with the fact that when running under the debug panel on the PlayerInput component it doesn’t change the scheme when switching controllers?
Also important to note is that I’m generating a C# file from the Input asset. Not sure how important that is, but it’d be very nice to be able to keep that.
It would be awesome to get this working as I’ve spent almost 3 days trying to figure it out.
