# How To: Gamepad Cursor "Mouse Click" VS UMG Buttons - No plugin, CommonUI or C++

**URL:** <https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 28, 2024, 7:02pm UTC](https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685 "2024-12-28T19:02:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![THEAETIK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theaetik/32/1183323_2.png) [@THEAETIK](https://forums.unrealengine.com/u/THEAETIK)\
**Post date:** [December 28, 2024, 7:02pm UTC](https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685/1 "2024-12-28T19:02:06Z")

</div>

**For those who have an existing project since UE4, here’s a tacky hack. If you are starting a new project, Ignore this and maybe go for CommonUI.**

* * *

I’ve been pulling my hair for a solution that allows the following:

Using the gamepad as a cursor (easy enough, it’s well documented) - BUT clicking UMG Buttons is also possible, without focus on the buttons themselves.

The following is assuming you have basic understanding of Blueprint Interfaces. There are a lot of tutorials on youtube if you’re not sure.

**INGREDIENTS:**

- Blueprint Interface (I called mine GamepadButtonBPI)
  - I created 2 events. One is **GamepadButtonClick** and the other **GamepadButtonSend**. In the input of the latter, I added one “Widget Object Reference”.

- Each buttons must ideally be part of a Custom Widget, and one Button per Custom Widget (If you have a canvas with 20+ Buttons already, you can add a “ButtonID” integer to **GamepadButtonSend** , so on hovering of buttons it sends an ID which you then apply from the **GamepadButtonClick** using an int switch, worked for me)
- A GameMode where you store your usual references / game logic. (I prefer this way, but if you can do everything in the PlayerController, feel free to bypass the GameMode)
- A PlayerController where your GameMode is referenced already

**RECEPIE:**

- Uncheck **“Is Focusable”** in all of your Custom Widget’s Buttons, this will prevent the hardcoded behavior for gamepad to occur when trying to navigate focused elements.
- Implement the BPI to both the GameMode and your Custom Widgets that have the single Button, also implement the **GamepadButtonClick** events to your custom widgets, plug it where your usual OnPressed / OnClicked logic fires.
- From the Custom Widgets, create a OnHovered event for when the Button is hovered. Plug this event to send a SELF reference (don’t forget to plug it!) of your Custom Widget via **GamepadButtonSend** to your GameMode (You can simply do “Get Gamemode” to get a reference to it, assuming it’s assigned by default in your project)
- In the GameMode, Implement the **GamepadButtonSend** event and promote the “Widget Object Reference” to something like **ActiveGamepadButton**.
- In the PlayerController, choose your desired input for “clicking”. Should normally be “Gamepad Face Bottom” for most games.
- From the Desired input event mentioned in the step above, get your GameMode reference and check if **ActiveGamepadButton** is valid. If true, send a **GamepadButtonClick** message to it. Then sent the reference of **ActiveGamepadButton** to none so users can’t continuously re-enter the same menu from the next submenu.
- For the rest you can create UnHover events to clear the **ActiveGamepadButton** so it’s no longer valid when you’re not hovering. Depending on your spacing between button you may have Unhover events clear the reference immediately after it was added from a new button hover, this can be avoided by having the Unhover event only remove its reference if compared with itself - if the object is a new one, then we shouldn’t clear it.

I hope that helps, because I searched for way too long for a solution until I came up with this.

---

<div class="post-metadata">

**Author:** ![THEAETIK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theaetik/32/1183323_2.png) [@THEAETIK](https://forums.unrealengine.com/u/THEAETIK)\
**Post date:** [December 29, 2024, 4:54am UTC](https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685/2 "2024-12-29T04:54:39Z")

</div>

In the end it looks something like this:

**Inside the GameMode**

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/2/8829aaed5fe7bbcf97642ec6f6fe057a32f23dc6.png)

**Inside Custom Widgets**

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/8/61817fb7e14b4a59cb2a709fd38d82b5ce3452a2.png)  
 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/5/e85ae17ea630cb26d10259e357ad6517a9c406c8.png)

**Inside PlayerController** (DirectorRef = GameMode in my case, I already referenced it)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c48fd07fc021fe7ddcb85618b805fa095482e10f.png)

And lastly, for the Cursor movement (inside the PlayerController) if you’re wondering about that:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/e/6ae4a9effa68e117b0058e82693b57f9bedb6e96.png)

---

<div class="post-metadata">

**Author:** ![Cronoss95](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cronoss95/32/887902_2.png) [@Cronoss95](https://forums.unrealengine.com/u/Cronoss95)\
**Post date:** [September 28, 2025, 5:55pm UTC](https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685/3 "2025-09-28T17:55:51Z")

</div>

I really appreciate this post and it offered me a great way of handling my buttons in my current project - but I wonder how would you use this kind of logic for other ui elements? For example, I have sliders and selection (combo strings) boxes; I tried to look and see if there are hover events, but there arent in those. Do you have any idea on how to continue this route with those elements?

---

<div class="post-metadata">

**Author:** ![THEAETIK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theaetik/32/1183323_2.png) [@THEAETIK](https://forums.unrealengine.com/u/THEAETIK)\
**Post date:** [July 1, 2026, 1:24am UTC](https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685/4 "2026-07-01T01:24:59Z")

</div>

Super late reply, but yeah the default slide bar is definitively a problem with the method I suggested. It would typically require a custom-made slider or arrows working in increments of 5 or 10.

---

<div class="post-metadata">

**Author:** ![Cronoss95](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cronoss95/32/887902_2.png) [@Cronoss95](https://forums.unrealengine.com/u/Cronoss95)\
**Post date:** [August 5, 2026, 6:44pm UTC](https://forums.unrealengine.com/t/how-to-gamepad-cursor-mouse-click-vs-umg-buttons-no-plugin-commonui-or-c/2247685/5 "2026-08-05T18:44:04Z")

</div>

Thank you for the reply anyway, really appreciate it 🙂
