# Using a scroll box with gamepad controller

**URL:** <https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685>\
**Category:** UI\
**Tags:** gamepad, Navigation, scrollbox, unreal-engine, Blueprint, question, UMG\
**Created:** [May 9, 2019, 2:13pm UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685 "2019-05-09T14:13:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Augurkel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Augurkel](https://forums.unrealengine.com/u/Augurkel)\
**Post date:** [May 9, 2019, 2:13pm UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/1 "2019-05-09T14:13:58Z")

</div>

After searching online there doesn’t seem to be an easy way to navigate a scroll box with a gamepad. Am I really the only one who uses a scroll box for an inventory system ( while using a controller )? So little info to find about this ☹ Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 9, 2019, 2:52pm UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/2 "2019-05-09T14:52:23Z")

</div>

I have no controller to test it but there’s a bunch of things that may be worth trying. For example:

Have you tried granting the scroll box User / Keyboard focus and setting its _isFocusable_ flag to {T}

---

<div class="post-metadata">

**Author:** ![Augurkel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Augurkel](https://forums.unrealengine.com/u/Augurkel)\
**Post date:** [May 9, 2019, 3:14pm UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/3 "2019-05-09T15:14:50Z")

</div>

Thank you for the reply!  
I have, but to no avail. Giving focus to the scroll box makes you lose the focus on the scrollable items. Navigation buttons don’t work when focussing on the scroll box.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 9, 2019, 3:30pm UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/4 "2019-05-09T15:30:44Z")

</div>

All right then, I half expected it wouldn’t work.

Perhaps you can scroll manually by overriding the _onAnalogueValue_ and setting scroll box’ offset. This should work for smooth scrolling. Btw, what are you using for scrolling? Sticks, triggers?

Or accumulate indexes in a variable and ask the scroll box to scroll to the next child. This would be very similar to the example demonstrated [here](https://answers.unrealengine.com/questions/893972/umg-smooth-scrolling-in-scrollbox.html).

---

<div class="post-metadata">

**Author:** ![Augurkel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Augurkel](https://forums.unrealengine.com/u/Augurkel)\
**Post date:** [May 10, 2019, 8:47am UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/5 "2019-05-10T08:47:59Z")

</div>

Thank you very much, I did something similar to your link and it works like a charm. I’m calling the ‘scroll widget into view’ node every time a button gains focus.

 ![276505-scrollfocus.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/6/956de7a2b2e6a60ceb9a2db0ce86f70a731b598d.jpeg)

This code is located inside a custom button blueprint that is being called every 0,1 seconds.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 10, 2019, 8:58am UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/6 "2019-05-10T08:58:18Z")

</div>

Clever! So it’s a repeater of sorts that fires for as long as the button is being held?

---

<div class="post-metadata">

**Author:** ![Augurkel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Augurkel](https://forums.unrealengine.com/u/Augurkel)\
**Post date:** [May 10, 2019, 9:27am UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/7 "2019-05-10T09:27:21Z")

</div>

Yes, every 0,1 seconds all the buttons in the scroll box update (initially intended to check focus and change button style) and if they have focus, the scroll to view function gets called 🙂

---

<div class="post-metadata">

**Author:** ![OldChippy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oldchippy/32/88707_2.png) [@OldChippy](https://forums.unrealengine.com/u/OldChippy)\
**Post date:** [April 30, 2024, 9:20am UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/8 "2024-04-30T09:20:55Z")

</div>

Just want to recognize the good work you continue to do mate. In the old post above I was looking for a way to scroll the scrollbar with a child that’s a gridpanel. I wanted to scroll that gridpanel without any mouse involvement so I could support both mouse and gamepad. You suggested in the linked thread something which had the gold nugget I needed. “Scroll Widget In To View” which worked perfectly first time.

Kind thanks, you have helped me again and I didn’t even ask you a question this time. 🙂

---

<div class="post-metadata">

**Author:** ![MachineAngels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MachineAngels](https://forums.unrealengine.com/u/MachineAngels)\
**Post date:** [August 26, 2024, 5:42am UTC](https://forums.unrealengine.com/t/using-a-scroll-box-with-gamepad-controller/448685/9 "2024-08-26T05:42:24Z")

</div>

I left an answer on this forum about this. I hope this helps someone:

> [@Keyboard and gamepad navigation in scroll box](https://forums.unrealengine.com/t/keyboard-and-gamepad-navigation-in-scroll-box/410469/12):
>
> To add onto both [@RubberPinecone](https://dev.epicgames.com/community/api/user_profiles/tab-redirect/about?discourse_username=RubberPinecone) and [eAsociety](https://dev.epicgames.com/community/api/user_profiles/tab-redirect/about?discourse_username=LCDLV) Have Navigation Destination set to Center, and scroll when focus changes to Instant Scroll. It will work like a charm!
