> For the complete documentation index, see [llms.txt](https://ferdowsur.gitbook.io/modular-3d-text/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ferdowsur.gitbook.io/modular-3d-text/input/button-key/button-input-system.md).

# Button Input System

## [*<mark style="color:yellow;">Global Button Input System</mark>*](#user-content-fn-1)[^1]

*Has one in every scene to control the behavior of all button inputs. Dictates what type of button input should be used.*\
*It is auto-created when a UI element that supports it is created. This auto-creation behavior can be turned on/off via the* [*asset window*](/modular-3d-text/master.md#asset-window)*.*

![](https://1119473059-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfrUtWCLmsoDLuNCqpm%2Fuploads%2FzYGCltcbE0AdiV3iS1xU%2Fimage.png?alt=media\&token=7e441256-fada-4e96-a46a-93e15b5e4761)

*There are three types of input. Global, Common, and Individual.*

![](https://1119473059-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfrUtWCLmsoDLuNCqpm%2Fuploads%2FrPCwcf2jStks0B2EkBIo%2Fimage.png?alt=media\&token=3c7e988b-385d-405d-912b-6cc7fa6c25c2)

<table><thead><tr><th width="249">Variable</th><th>Type</th><th></th></tr></thead><tbody><tr><td><strong>selectedInputSystem</strong></td><td>ButtonInputSystemLocal</td><td>The currently selected UI item.</td></tr></tbody></table>

## [*<mark style="color:yellow;">Local Button Input System</mark>*](#user-content-fn-2)[^2]

*The Local input system has all the events correctly set up by default. Call these events if you want to use your own custom input processor.*

![](https://1119473059-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfrUtWCLmsoDLuNCqpm%2Fuploads%2FUo8pgUm23z9y2END7GNm%2Fimage.png?alt=media\&token=bcda03a9-e82c-4aaf-90d0-ff3a2c254f9c)

[^1]: ButtonInputSystemGlobal.cs in TinyGiantStudio.Text namespace.

[^2]: ButtonInputSystemLocal.cs in TinyGiantStudio.Text namespace
