Search Results for

    Class GlobalInput

    Inheritance
    object
    GlobalInput
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: SonsSdk
    Assembly: SonsSdk.dll
    Syntax
    public class GlobalInput

    Constructors

    GlobalInput()

    Declaration
    public GlobalInput()

    Methods

    RegisterKey(KeyCode, Action)

    Register a key that will be polled every frame. The action will be invoke if the key is pressed during that frame.

    Declaration
    public static bool RegisterKey(KeyCode key, Action action)
    Parameters
    Type Name Description
    KeyCode key
    Action action
    Returns
    Type Description
    bool

    False if the key is already registered

    UnregisterKey(KeyCode)

    Declaration
    public static void UnregisterKey(KeyCode key)
    Parameters
    Type Name Description
    KeyCode key