# Input Action Event

{% hint style="success" %}

#### Like what your seeing?

Support us as a [GitHub Sponsor](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) 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](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) ... become a sponsor today!
{% endhint %}

## &#x20;Introduction

<figure><img src="https://4053370152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZWu8yFOWhCYCMkJFmR%2Fuploads%2FvLNQwg18unyTW62lnCgV%2Fimage.png?alt=media&#x26;token=e0fd02e4-a661-483b-800f-f6d0a3b52990" alt=""><figcaption></figcaption></figure>

Lets you connect an [InputAction](https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/classes/input-action) to a method that takes an [InputActionUpdate ](https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/classes/input-action-update)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 ](https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/classes/input-action-update)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.
