docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate SteamInputActionEventCallbackPointer

    Receives each Steam Input action event; install it with EnableActionEventCallbacks(SteamInputActionEventCallbackPointer). It runs synchronously inside RunFrame(bool) or Steam's own callback dispatch, on whichever thread made that call.

    Steam calls it from native code, so the method behind it must be static and carry [AOT.MonoPInvokeCallback(typeof(SteamInputActionEventCallbackPointer))]: IL2CPP only builds a native entry point for such a method, and otherwise fails at runtime rather than at build time. Catch every exception in the handler. An exception that unwinds into Steam's stack causes undefined behavior.

    Namespace: Unity.Steamworks.Interop
    Assembly: Unity.Steamworks.Interop.dll
    Syntax
    public delegate void SteamInputActionEventCallbackPointer(ref SteamInputActionEvent_t pEvent)
    Parameters
    Type Name Description
    SteamInputActionEvent_t pEvent

    The action event Steam is reporting.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)