I’m working on a project and wish to have keybinds and UI buttons be able to perform the same thing.
While I have hooked up an event to call the same thing the UI button does, is there a way to make it play the ‘pressed’ visual on the keybind hotkey being pressed?
For instance: Say I have an ability key for throwing a grenade. If you use the mouse to click on it on the UI you get the ‘pressed’ visual while you hold the mouse button down, then it returns to normal when you release the mouse button.
I want those same visuals to occur when pressing the keybind tied to that UI element, but I’m uncertain if there’s a simple way to do that.
Doing this in an RTS-style setup, so I don’t want to ‘steal the mouse over to the key for just a frame to simulate the press’ or anything, either.
The player also will not be ‘navigating’ the buttons, so I don’t think UE4’s “Focusable” feature is an option, but let me know if there’s a way to do that.