# Input Action Data

{% 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 %}

## Introduction

```csharp
using HeathenEngineering.SteamworksIntegration;
```

```csharp
public struct InputActionData
```

Represents the current state of an input action and is returned by the InputAction and InputControllerData objects. Its not typical that you would create this your self. The most common use case is to use the GetActionData() method of the InputAction object in Unity or to use the API.Input class to get the action data of a specific controller.

## Fields and Attributes

### Name

The name of the action the data relates to

```csharp
public string name;
```

### Type

The type of action the data relates to

```csharp
public InputActionType type;
```

### Controller

The handle for the controller this action data relates to

```csharp
public InputHandle_t controller;
```

### Active

Is the action active or not

```csharp
public bool active;
```

### Mode

The type of input source this action reported

```csharp
public EInputSourceMode mode;
```

### State

The current state of the action at the time this data was generated

```csharp
public bool state;
```

### X

The x axis value of this input

```csharp
public float x;
```

### Y

The y axis value of this input

```csharp
public float y;
```


---

# 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/classes/input-action-data.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.
