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

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

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

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

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