---
title: Button Logic
description: "Related Classes - UComponentLogic - SLayoutComponent ## SUMMARY Interprets inputs as a button. Three possible states: - **Pressed** : Sends an event on press (trigger or start) - **Moved**: Sends an event on move (trigger) only if the type of…"
url: "https://www.lostingamestudio.com/documentation/touch-interface-designer/logic/button-logic/"
updated: "2025-12-22"
category: Touch Interface Layout / Logic
---

# Button Logic

Related Classes

- UComponentLogic
- SLayoutComponent

## SUMMARY

Interprets inputs as a button.

Three possible states:

- **Pressed** : Sends an event on press (trigger or start)
- **Moved**: Sends an event on move (trigger) only if the type of input action is an axis.
- **Released**. Sends an event on release (completed).

## WHEN TO USE IT?

When you simply want an on/off button, for example, to trigger a weapon or an action. The ability to use an Axis1D or Axis2D input action allows you to add a value to the action trigger, for example, if you need to throw a basketball with a certain force.
