Search Results for

    Show / Hide Table of Contents

    Class ActionConfig

    Maps keyboard, controller, or mouse inputs to a "friendly name" that will later be bound to continuous game behavior, such as movement. The inputs mapped in AxisMappings are continuously polled, even if they are just reporting that their input value.

    Inheritance
    System.Object
    ActionConfig
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public sealed class ActionConfig : ValueType

    Fields

    Gamepad

    Which gamepad should be used.

    Declaration
    [EditorOrder(40)]
    public InputGamepadIndex Gamepad
    Field Value
    InputGamepadIndex

    GamepadButton

    The gamepad button to map for this action. Use None to ignore it.

    Declaration
    [EditorOrder(30)]
    public GamepadButton GamepadButton
    Field Value
    GamepadButton

    Key

    The keyboard key to map for this action. Use None to ignore it.

    Declaration
    [EditorOrder(10)]
    public KeyboardKeys Key
    Field Value
    KeyboardKeys

    Mode

    The trigger mode. Allows to specify when input event should be fired.

    Declaration
    [EditorOrder(5)]
    public InputActionMode Mode
    Field Value
    InputActionMode

    MouseButton

    The mouse button to map for this action. Use None to ignore it.

    Declaration
    [EditorOrder(20)]
    public MouseButton MouseButton
    Field Value
    MouseButton

    Name

    The action "friendly name" used to access it from code.

    Declaration
    [EditorOrder(0)]
    public string Name
    Field Value
    System.String

    Properties

    Default

    The default ActionConfig.

    Declaration
    public static ActionConfig Default { get; }
    Property Value
    ActionConfig

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat