namespace VRTK.Prefabs.CameraRig.UnityXRCameraRig.Input { using UnityEngine; using Malimbe.PropertySerializationAttribute; using Malimbe.XmlDocumentationAttribute; using Zinnia.Action; /// /// Listens for the specified key state and emits the appropriate action. /// public class UnityButtonAction : BooleanAction { /// /// The to listen for state changes on. /// [Serialized] [field: DocumentedByXml] public KeyCode KeyCode { get; set; } protected virtual void Update() { Receive(Input.GetKey(KeyCode)); } } }