Page cover image

Input Action Set Data

Like what your seeing?

Support us as a GitHub 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 ... become a sponsor today!

Introduction

using HeathenEngineering.SteamworksIntegration;
public struct InputActionSetData : IEquatable<InputActionSetHandle_t>, 
                                   IComparable<InputActionSetHandle_t>, 
                                   IEquatable<ulong>, 
                                   IComparable<ulong>

A wrapper around the InputActionSetHandle_t structure from Valve's Steam API. This struct provides a lot of quality of life improvements over the native handle type and can be used interchangeably with it.

Fields and Attributes

Handle

The raw ulong value of the handle

public ulong Handle { get; set; }

Methods

IsActive

public bool IsActive(InputControllerData controller)

or

public bool IsActive(InputHandle_t controller)

Checks if this set is active for the indicated controller

Activate

public void Activate(InputControllerData controller)

or

public void Activate(InputHandle_t controller)

Activates this set on the indicated controller

Get

public static InputActionSetData Get(string setName)

or

public static InputActionSetData Get(InputActionSetHandle_t handle)

or

public static InputActionSetData Get(ulong handleValue)

This will get (i.e. find) the InputActionSetData based on the provided input e.g. its name or handle value.

Last updated