Links

Input Action Data

Like what your seeing?

Consider supporting us as a GitHub Sponsor and get instant access to all our Unity assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our GitHub Sponsors ... become a sponsor today!

Introduction

public struct InputActionData;

Fields and Attributes

Type
Name
Comment
InputHandle_t
controller
The controller this action data was read from
InputActionType
type
Analog or Digital
bool
active
Is this action active e.g. part of an active set or layer
EInputSourceMode
mode
Only used for analog actions, indicates the type of analog action simulated e.g. mouse, stick, etc..
bool
state
True if this action is active. For analog actions this is true if either x or y is non-zero
float
x
For analog actions this indicates the x axis
float
y
For analog actions this indicates the y axis
​