I’m making an UI for actions remapping with 3 user widgets:
- InputConfig: The main container, with an scrollbox and two buttons for accept and cancel changes.
- ActionEntry: Has a label for showing the action name and a container for the mapping buttons.
- MappingButton: Has a button and a label for showing current mapping’s keys.
The MappingButton BP has the code for scanning the gamepad, keyboard, and the mouse, and the first two works very well, but … i have a problem with the mouse.
When you click the button widget, the BP turns on a “scanning input” boolean, and then, pressing a key combination, a gamepad button or a mouse button, changes the button’s label to show you what you did press, like “CTRL-A” for example.
For the mouse, i’m using the OnMouseButtonUp event, and, if i click the right button or the middle button all works fine (the label shows the mouse button name released correctly), but, if i click the left button, nothing happens.
I have done some debugging, and the OnMouseButtonUp event do not fire when i release the left mouse button while the cursor is on the button widget.
So, the question would be… why the left mouse button do not fire that event?