# Input Action Event

{% hint style="success" %}

#### Like what your seeing?

Support us as a [GitHub Sponsor](/old-kb/where-to-buy/become-a-sponsor.md) and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.\
\
These articles are made possible by our [GitHub Sponsors](/old-kb/where-to-buy/become-a-sponsor.md) ... become a sponsor today!
{% endhint %}

## &#x20;Introduction

<figure><img src="/files/MQThtIegEJL2D0zFUPU0" alt=""><figcaption></figcaption></figure>

Lets you connect an [InputAction](/old-kb/old-toolkit-for-steamworks/unity/objects/classes/input-action.md) to a method that takes an [InputActionUpdate ](/old-kb/old-toolkit-for-steamworks/unity/objects/classes/input-action-update.md)value as a parameter in the Unity Editor Inspector similar to the behaviour with a UI Button Click event.

## Events

### Changed

```csharp
public InputactionEvent.ActionDataEvent changed;
```

This event expects a handler that takes an [InputActionUpdate ](/old-kb/old-toolkit-for-steamworks/unity/objects/classes/input-action-update.md)parameter such as.

```csharp
public void HandleActionEvent(InputActionUpdate data)
{
    //Do Work
    if(data.State)
        ;//This action happened
}
```

### Fields and Attributes

### Action

```csharp
public InputAction action;
```

A reference to the action to listen on. This action will invoke the Changed event when its data has changed as a result of update from the Steam Input system.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/components/input-action-event.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
