Problem with the Button Feedback (Mouse and Keyboard/Gamepad Setup)


I know how to make my life complicated…

So I’ve been working on the menu for my codenamed game, and I just realized, that I need to have the Keyboard/Gamepad Input for the menu set up as well.

And here comes the problem, the button hovering feedback.
For mouse it works just fine, but I don’t know how to set it up for the Keyboard/Gamepad, to make it act hovered, same as the mouse. Anyone can help?

Note the printed string on the top left corner

Button Hovered via keyboard input with it’s current setup

Button Hovered via mouse

Here’s the keyboard input setup.

Here’s the Graph of the Widget Button and Screenshot of Main Menu from the Designer.

Note, that each button is the same Widget.

Hey @GraczCourier!

So I THINK the answer is going to lie here:

But the image is too big. Can you piece some of that out in different snips so we can read it? Thanks!

1 Like

Oh, didn’t knew there’s a screenshot resolution limit here. Can Imgur do the trick? Just click the image.

Note: I want the Button Hovered via Keyboard Input to look the same as Hovered by Mouse.

Okay, I just realized what I had to do last time I did this, which was UE4.

On hovered is not achievable through keyboard and mouse. So what you do is you change the style of the button when it is focused! That’s literally all. But yeah it’s silly. :confused:

If you need some help with that let me know!

Edit: Yes, that did work linking it from imgur!

1 Like

Yeah, if you also noticed, the Button Widget also has Expansion Animation when it’s Hovered, while Main Menu has animations that moves these Buttons up/downside, depending on which one was Hovered. I don’t know how I’m gonna make these Buttons Expansion Animation play separately for each, instead of all of them Expanding all together.

Hey again @GraczCourier!

I’m not sure what you’re getting at with the up/downside thing, do you mean move them forward/back in Zorder so they don’t overlap incorrectly?

You can do all of these things with code, I’ve actually never seen them done with animation. Here’s a really good video explaining pretty simply how to go about all of that stuff and more! It’s from UE4 but the UMG hasn’t changed much.

Disclaimer: This link is not associated with Unreal Engine, Epic Games, or their partners.

By up/downside I meant this (watch the timeline and buttons):

Frame 0,00

Frame 0,10

But let’s get back to the Button Hovering Feedback. I even tried to get the Button Expansion Animation to run separately for each Button with this… yet with no luck.