Bindings keyboard inputs via Delegates fail

Sorry dude, but I’m really confused about what you are trying to do. By the way you should bind your key input within your player controller. See this image, it is on player controller, everytime key E is pressed it will trigger the event “Request Mount From Server”:

If you want to bind an event to be called everytime “Esc” is pressed, just right click on the event graph of your player controller and type “Escape”.

Hello all, on my project collided with next problem: I want binding UMG button on keyboard key. I spend 8 hours to try fin solution for this simple functional. First i try make like in this post:
https://forums.unrealengine.com/filedata/fetch?id=1071105&d=1427206990. But i don’t find way to call “Get key” nod.
after that i try use this solution:
UMG - Keyboard shortcuts - UI - Unreal Engine Forums
But get error:

In my “game” mouse is not available and i want press any key on keyboard and see how my widget button pressed, like in all modern games. Please help me, i very tired try to do this “simple” task. P.S. Sorry for my english.

you don’t understand me, i have class: player, in this class i have button “E” and i what functional: when i press “E” witget button is pressed or speaking differentl way i whant press witger button via keybord.

Just call the same event you call when the widget button is clicked on your keypress event.

How? I have input event on my “player” class, how i connect to even click on widget class?

If someone have simple solution please show me how…

Hello Iddqd87dm,
You will not need to link your Player input to the ‘UI’ to receive player input. The Events OnClicked or OnPressed/Released are for handling Mouse and Touch Devices, so they can “click” the button or widget. If you are using only the keyboard you can run your custom logic from the Player’s ‘Input Actions.’ I can see you already have a custom input mapping, so set up your key input mappings in the Project Settings → Input → Action Mappings.

First: On UI, make a variable of type player, ‘expose it to spawn’ and make it ‘instance editable’.

Then: Create the widget from your Player.

Finally: Run your Logic, and optionally change something on the UI.

Let me know if this was helpful!

Thanks for help!

Glad to help. If you feel your question was answered please mark it as resolved to assist other users, thanks!