Exemplo n.º 1
0
        internal void Update(ulong updateTick, float deltaTime, InputDevice device)
        {
            Device = device;

            UpdateBindings(updateTick, deltaTime);

            if (triggerBindingChanged)
            {
                if (OnBindingsChanged != null)
                {
                    OnBindingsChanged.Invoke();
                }

                triggerBindingChanged = false;
            }

            if (triggerBindingEnded)
            {
                (ListenOptions ?? Owner.ListenOptions).CallOnBindingEnded(this);
                triggerBindingEnded = false;
            }

            DetectBindings();
        }
Exemplo n.º 2
0
        public void ReloadBindings()
        {
            // loop registered binding actions, fetch key from settings

            OnBindingsChanged?.Invoke(this, new EventArgs());
        }