Example #1
0
 public override void UpdateJoystick(VJoyBase vjoy)
 {
     if (Button >= 0)
     {
         vjoy.SetButton(Button, Output > 0);
     }
 }
        public override void UpdateJoystick(VJoyBase vjoy)
        {
            int v = (int)Output;

            for (var i = 0; i < 16; i++)
            {
                var p = Parameters[i];
                if (p.Enabled && p.Button >= 0)
                {
                    vjoy.SetButton(p.Button, ((v & (1 << i)) != 0));
                }
            }
        }
Example #3
0
 public void SetButton(int button, double value)
 {
     vjoy.SetButton(button - 1, value > 0);
 }