Beispiel #1
0
 public PushAxis(AxisBinding binding)
     : base("Push",
     binding,
     new PushSingleAxis(true),
     new PushSingleAxis(false))
 {
     KinectAxisConfig cfg = new KinectAxisConfig();
     (Positive as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Positive.Name);
     (Negative as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Negative.Name);
     (Positive as ConstrainedAxis).Scale.Value = cfg.GetScale(Positive.Name);
     (Negative as ConstrainedAxis).Scale.Value = cfg.GetScale(Negative.Name);
 }
Beispiel #2
0
 public PushAxis(bool right, AxisBinding binding)
     : base("Push" + (right ? "Right" : "Left"), 
     binding,
     new PushSingleAxis(right, true), 
     new PushSingleAxis(right, false))
 {
     KinectAxisConfig cfg = new KinectAxisConfig();
     (Positive as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Positive.Name);
     (Negative as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Negative.Name);
     (Positive as ConstrainedAxis).Scale.Value = cfg.GetScale(Positive.Name);
     (Negative as ConstrainedAxis).Scale.Value = cfg.GetScale(Negative.Name);
 }
Beispiel #3
0
        public PushAxis(AxisBinding binding)
            : base(
                "Push",
                binding,
                new PushSingleAxis(true),
                new PushSingleAxis(false))
        {
            KinectAxisConfig cfg = new KinectAxisConfig();

            (Positive as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Positive.Name);
            (Negative as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Negative.Name);
            (Positive as ConstrainedAxis).Scale.Value    = cfg.GetScale(Positive.Name);
            (Negative as ConstrainedAxis).Scale.Value    = cfg.GetScale(Negative.Name);
        }
Beispiel #4
0
        public PushAxis(bool right, AxisBinding binding)
            : base(
                "Push" + (right ? "Right" : "Left"),
                binding,
                new PushSingleAxis(right, true),
                new PushSingleAxis(right, false))
        {
            KinectAxisConfig cfg = new KinectAxisConfig();

            (Positive as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Positive.Name);
            (Negative as ConstrainedAxis).Deadzone.Value = cfg.GetDeadzone(Negative.Name);
            (Positive as ConstrainedAxis).Scale.Value    = cfg.GetScale(Positive.Name);
            (Negative as ConstrainedAxis).Scale.Value    = cfg.GetScale(Negative.Name);
        }