UI Buttons - Remap Input from A to X Button

Hey :slight_smile:

I have a simple UI with some buttons, I can switch between them and I can also interact with them with my Xbox Controller. I´m using the Enhanced Input System btw.

My problem now is that I can only interact with a menu-button with the A-Button of the Xbox Controller, but I would love to use the X-Button, because in my game all the interactions work with the X-Button.

I´ve done some research and there was something about overriding the OnKeyDown event, but I havent figured out what to do in my case :frowning:

I could switch everything to the A-Button, but I realy would love to know how to remap this input.

Appreciate your help :bouquet:
Alex

I´ve probably found a solution, because I forgot that I made a button template for the buttons in the menu.

  • In my button template I have an event dispatcher that get called when I press the button (also play a little animation on the button)

  • Also in the button template I override OnKeyDown and compare if I press the X-Button. If TRUE I call the OnClickCustom Dispatcher.

  • In my menu widget I can react to the specific button events.

This still allows to press the A-Key, Enter and Space to interact with the button, but it´s a start.

If you have another solutions I would be curious to know :slight_smile: