Detect which controller pressed a UI button

Hi, I’m trying to create a character select screen which works with multiple gamepads, but I’m not sure how can I detect which gamepad click on each UI button.
I’ve tried checking each gamepad using the node “Was Input Key Just Pressed”, but it doesn’t work because the UI button consumes the input.

When creating the widget you should pass the owner, and later you can use GetOwner to know who owns the UI.

But then I should have a copy of the buttons widget for each controller, right? I was hoping to find a solution using a single instance of the buttons.