UIPageLayout Input Control

There are now a few new properties on UIPageLayout which allow control over what types of user input are enabled. You can use this to make custom scripted layouts, or to specifically disable e.g. scroll wheel input.

The new properties:

bool UIPageLayout.GamepadInputEnabled
bool UIPageLayout.ScrollWheelInputEnabled
bool UIPageLayout.TouchInputEnabled
42 Likes

YES! YES!

This is wonderful. Now my crate opening UI won’t be affected by mouse activity. :smile:

3 Likes

TIFFBLOCKS FOR PRESIDENT, TIFFBLOCKS FOR PRESIDENT

16 Likes

This is AWEEEEEEEEEEEEEEEESOME

Really really good update. Was wishing for some sort of touch detection for a while now :slight_smile:

Is there any real reason those properties are on UIPageLayout (and not on UserInputService, as usual), though?

They’re not appropriate for UserInputService. These properties override certain input behaviors for UIPageLayout, meaning that toggling any of them directly affects the elements relying on the layout. Putting them on UIS doesn’t work out because service properties are centralized and wouldn’t allow developers to control UIPageLayout behaviors per GUI.

Almost like asking why MouseButton1Click is on TextButtons and not UIS. Not logical.

1 Like

The default behavior on UIPageLayout is to allow touch input to scroll it, and mouse wheel input to scroll it. These are options that allow you to opt out of this functionality on UIPageLayout objects specifically. They do not apply to anything other than UIPageLayout’s built in scrolling methods. The purpose behind adding them is to allow it to be used for stuff like slot machines where the scrolling is done by a script instead of user input.