Using a scroll box with gamepad controller

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 :frowning: Any help would be greatly appreciated.

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}

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.

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.

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.

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

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 :slight_smile:

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