---
tags:
    - "Active"
    - "On"
    - "Off"
    - "Disabled"
    - "Map"
---

# Is Input Action Enabled

[Input](index.md) / **Is Input Action Enabled**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns true if the specified Input Action is currently listening to input

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Is Input Action Enabled")]
    [Category("Input/Is Input Action Enabled")]

    [Description("Returns true if the specified Input Action is currently listening to input")]
    [Image(typeof(IconBoltOutline), ColorTheme.Type.Teal, typeof(BadgeTick))]

    [Keywords("Active", "On", "Off", "Disabled", "Map")]

    [Serializable]
    public class TypeBoolInputActionEnabled : TypeBool
    {
        [SerializeField] private InputActionFromAsset m_InputAction = new InputActionFromAsset();

        public override bool Get(Args args)
        {
            UnityEngine.InputSystem.InputAction inputAction = this.m_InputAction.InputAction;
            return inputAction?.enabled ?? false;
        }

        public override string ToString()
        {
            return $"{this.m_InputAction} is Enabled";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

```

