Example #1
0
        public override void SetAxis(string name, float value)
        {
            if (!VirtualAxes.ContainsKey(name))
            {
                AddAxes(name);
            }

            VirtualAxes[name].Update(value);
        }
Example #2
0
        public override void SetAxisZero(string name)
        {
            if (!VirtualAxes.ContainsKey(name))
            {
                AddAxes(name);
            }

            VirtualAxes[name].Update(0f);
        }
Example #3
0
        public override float GetAxis(string name, bool raw)
        {
            if (!VirtualAxes.ContainsKey(name))
            {
                AddAxes(name);
            }

            return(VirtualAxes[name].GetValue);
        }
Example #4
0
        public override void SetAxisNegative(string name)
        {
            if (!VirtualAxes.ContainsKey(name))
            {
                AddAxes(name);
            }

            VirtualAxes[name].Update(-1f);
        }