public Midevice()
        {
            LSx = new JoyAxis("Left Stick X", DataFlowDirection.Input);      //, Properties.Resources._360_Left_Stick.ToImageSource());
            LSy = new JoyAxis("Left Stick Y", DataFlowDirection.Input);      //, Properties.Resources._360_Left_Stick.ToImageSource());
            RSx = new JoyAxis("Right Stick X", DataFlowDirection.Input);     //, Properties.Resources._360_Right_Stick.ToImageSource());
            RSy = new JoyAxis("Right Stick Y", DataFlowDirection.Input);     //, Properties.Resources._360_Right_Stick.ToImageSource());

            LS = new Button("Left Stick", DataFlowDirection.Input);          //, Properties.Resources._360_Left_Stick.ToImageSource());
            RS = new Button("Right Stick", DataFlowDirection.Input);         //, Properties.Resources._360_Right_Stick.ToImageSource());

            L2        = new JoyAxis("L2 (Analog)", DataFlowDirection.Input); //, Properties.Resources._360_LT.ToImageSource()) { min_Value = 0 };
            R2        = new JoyAxis("R2 (Analog)", DataFlowDirection.Input); //, Properties.Resources._360_RT.ToImageSource()) { min_Value = 0 };
            L1        = new Button("L1", DataFlowDirection.Input);           //, Properties.Resources._360_LB.ToImageSource());
            R1        = new Button("R1", DataFlowDirection.Input);           //, Properties.Resources._360_RB.ToImageSource());
            L2Digital = new Button("L2 (Digital)", DataFlowDirection.Input); //, Properties.Resources._360_LB.ToImageSource());
            R2Digital = new Button("R2 (Digital)", DataFlowDirection.Input); //, Properties.Resources._360_RB.ToImageSource());

            DUp    = new Button("DPad Up", DataFlowDirection.Input);         //, Properties.Resources._360_Dpad_Up.ToImageSource());
            DDown  = new Button("DPad Down", DataFlowDirection.Input);       //, Properties.Resources._360_Dpad_Down.ToImageSource());
            DLeft  = new Button("DPad Left", DataFlowDirection.Input);       //, Properties.Resources._360_Dpad_Left.ToImageSource());
            DRight = new Button("DPad Right", DataFlowDirection.Input);      //, Properties.Resources._360_Dpad_Right.ToImageSource());

            A = new Button("A", DataFlowDirection.Input);                    //, Properties.Resources._360_A.ToImageSource());
            B = new Button("B", DataFlowDirection.Input);                    //, Properties.Resources._360_B.ToImageSource());
            X = new Button("X", DataFlowDirection.Input);                    //, Properties.Resources._360_X.ToImageSource());
            Y = new Button("Y", DataFlowDirection.Input);                    //, Properties.Resources._360_Y.ToImageSource());

            Start = new Button("Menu", DataFlowDirection.Input);             //, Properties.Resources._360_Start.ToImageSource());
            Back  = new Button("Back", DataFlowDirection.Input);             //, Properties.Resources._360_Back.ToImageSource());
            Mi    = new Button("MI", DataFlowDirection.Input);               //, Properties.Resources._360_Guide.ToImageSource());

            BatteryLevel = new JoyAxis("Battery level", DataFlowDirection.Input);
            GX           = new JoyAxis("Gravity X", DataFlowDirection.Input);
            GY           = new JoyAxis("Gravity Y", DataFlowDirection.Input);
            GZ           = new JoyAxis("Gravity Z", DataFlowDirection.Input);

            BigRumble            = new RumbleMotor("Big Rumble", DataFlowDirection.Output);
            SmallRumble          = new RumbleMotor("Small Rumble", DataFlowDirection.Output);
            ControlAccelerometer = new Toggle("Control Accelerometer", DataFlowDirection.Output);
        }
Ejemplo n.º 2
0
        public x360device()
        {
            LSx = new JoyAxis("Left Stick X", DataFlowDirection.Input, "", Properties.Resources._360_Left_Stick.ToImageSource());
            LSy = new JoyAxis("Left Stick Y", DataFlowDirection.Input, "", Properties.Resources._360_Left_Stick.ToImageSource());
            RSx = new JoyAxis("Right Stick X", DataFlowDirection.Input, "", Properties.Resources._360_Right_Stick.ToImageSource());
            RSy = new JoyAxis("Right Stick Y", DataFlowDirection.Input, "", Properties.Resources._360_Right_Stick.ToImageSource());

            LS = new Button("Left Stick", DataFlowDirection.Input, "", Properties.Resources._360_Left_Stick.ToImageSource());
            RS = new Button("Right Stick", DataFlowDirection.Input, "", Properties.Resources._360_Right_Stick.ToImageSource());

            LT = new JoyAxis("Left Trigger", DataFlowDirection.Input, "", Properties.Resources._360_LT.ToImageSource())
            {
                min_Value = 0
            };
            RT = new JoyAxis("Right Trigger", DataFlowDirection.Input, "", Properties.Resources._360_RT.ToImageSource())
            {
                min_Value = 0
            };
            LB = new Button("Left Bumper", DataFlowDirection.Input, "", Properties.Resources._360_LB.ToImageSource());
            RB = new Button("Right Bumper", DataFlowDirection.Input, "", Properties.Resources._360_RB.ToImageSource());

            DUp    = new Button("DPad Up", DataFlowDirection.Input, "", Properties.Resources._360_Dpad_Up.ToImageSource());
            DDown  = new Button("DPad Down", DataFlowDirection.Input, "", Properties.Resources._360_Dpad_Down.ToImageSource());
            DLeft  = new Button("DPad Left", DataFlowDirection.Input, "", Properties.Resources._360_Dpad_Left.ToImageSource());
            DRight = new Button("DPad Right", DataFlowDirection.Input, "", Properties.Resources._360_Dpad_Right.ToImageSource());

            A = new Button("A", DataFlowDirection.Input, "", Properties.Resources._360_A.ToImageSource());
            B = new Button("B", DataFlowDirection.Input, "", Properties.Resources._360_B.ToImageSource());
            X = new Button("X", DataFlowDirection.Input, "", Properties.Resources._360_X.ToImageSource());
            Y = new Button("Y", DataFlowDirection.Input, "", Properties.Resources._360_Y.ToImageSource());

            Start = new Button("Start", DataFlowDirection.Input, "", Properties.Resources._360_Start.ToImageSource());
            Back  = new Button("Back", DataFlowDirection.Input, "", Properties.Resources._360_Back.ToImageSource());
            Guide = new Button("Guide", DataFlowDirection.Input, "", Properties.Resources._360_Guide.ToImageSource());

            BigRumble   = new RumbleMotor("Big Rumble", DataFlowDirection.Output, "");
            SmallRumble = new RumbleMotor("Small Rumble", DataFlowDirection.Output, "");
        }
Ejemplo n.º 3
0
        public DS4Device()
        {
            LSx = new ODIF.JoyAxis("Left Stick X", DataFlowDirection.Input, "", Properties.Resources.LSX.ToImageSource());
            LSy = new ODIF.JoyAxis("Left Stick Y", DataFlowDirection.Input, "", Properties.Resources.LSY.ToImageSource());
            RSx = new ODIF.JoyAxis("Right Stick X", DataFlowDirection.Input, "", Properties.Resources.RSX.ToImageSource());
            RSy = new ODIF.JoyAxis("Right Stick Y", DataFlowDirection.Input, "", Properties.Resources.RSY.ToImageSource());

            L3 = new ODIF.Button("L3", DataFlowDirection.Input, "Left stick", Properties.Resources.L3.ToImageSource());
            R3 = new ODIF.Button("R3", DataFlowDirection.Input, "Right Stick", Properties.Resources.R3.ToImageSource());

            L2 = new ODIF.JoyAxis("L2", DataFlowDirection.Input, "Left Trigger", Properties.Resources.L2.ToImageSource())
            {
                min_Value = 0
            };
            R2 = new ODIF.JoyAxis("R2", DataFlowDirection.Input, "Right Trigger", Properties.Resources.R2.ToImageSource())
            {
                min_Value = 0
            };
            L1 = new ODIF.Button("L1", DataFlowDirection.Input, "Left Bumper", Properties.Resources.L1.ToImageSource());
            R1 = new ODIF.Button("R1", DataFlowDirection.Input, "Right Bumper", Properties.Resources.R1.ToImageSource());

            DUp    = new ODIF.Button("DPad Up", DataFlowDirection.Input, "", Properties.Resources.DUp.ToImageSource());
            DDown  = new ODIF.Button("DPad Down", DataFlowDirection.Input, "", Properties.Resources.DDown.ToImageSource());
            DLeft  = new ODIF.Button("DPad Left", DataFlowDirection.Input, "", Properties.Resources.DLeft.ToImageSource());
            DRight = new ODIF.Button("DPad Right", DataFlowDirection.Input, "", Properties.Resources.DRight.ToImageSource());

            Cross    = new ODIF.Button("Cross", DataFlowDirection.Input, "", Properties.Resources.Cross.ToImageSource());
            Circle   = new ODIF.Button("Circle", DataFlowDirection.Input, "", Properties.Resources.Circle.ToImageSource());
            Square   = new ODIF.Button("Square", DataFlowDirection.Input, "", Properties.Resources.Square.ToImageSource());
            Triangle = new ODIF.Button("Triangle", DataFlowDirection.Input, "", Properties.Resources.Triangle.ToImageSource());

            PS      = new ODIF.Button("PS", DataFlowDirection.Input, "");
            Share   = new ODIF.Button("Share", DataFlowDirection.Input, "", Properties.Resources.Share.ToImageSource());
            Options = new ODIF.Button("Options", DataFlowDirection.Input, "", Properties.Resources.Options.ToImageSource());

            Battery  = new ODIF.JoyAxis("Battery Level", DataFlowDirection.Input, "");
            Charging = new ODIF.Button("Charging", DataFlowDirection.Input, "");

            TouchpadButton   = new ODIF.Button("Touchpad Button", DataFlowDirection.Input, "");
            TouchpadTouchOne = new ODIF.Button("Touchpad Touch One", DataFlowDirection.Input, "");
            TouchpadTouchTwo = new ODIF.Button("Touchpad Touch Two", DataFlowDirection.Input, "");

            TouchpadTouchOneX = new ODIF.JoyAxis("Touchpad Touch One X", DataFlowDirection.Input, "")
            {
                min_Value = 0
            };
            TouchpadTouchOneY = new ODIF.JoyAxis("Touchpad Touch One Y", DataFlowDirection.Input, "")
            {
                min_Value = 0
            };
            TouchpadTouchTwoX = new ODIF.JoyAxis("Touchpad Touch Two X", DataFlowDirection.Input, "")
            {
                min_Value = 0
            };
            TouchpadTouchTwoY = new ODIF.JoyAxis("Touchpad Touch Two Y", DataFlowDirection.Input, "")
            {
                min_Value = 0
            };

            GyroX = new ODIF.JoyAxis("Gyroscope X", DataFlowDirection.Input, "");
            GyroY = new ODIF.JoyAxis("Gyroscope Y", DataFlowDirection.Input, "");
            GyroZ = new ODIF.JoyAxis("Gyroscope Z", DataFlowDirection.Input, "");

            AccelX = new ODIF.JoyAxis("Accelerometer X", DataFlowDirection.Input, "");
            AccelY = new ODIF.JoyAxis("Accelerometer Y", DataFlowDirection.Input, "");
            AccelZ = new ODIF.JoyAxis("Accelerometer Z", DataFlowDirection.Input, "");

            BigRumble   = new RumbleMotor("Big Rumble", DataFlowDirection.Output, "");
            SmallRumble = new RumbleMotor("Small Rumble", DataFlowDirection.Output, "");
            LightBar    = new RGBLED("Light Bar", DataFlowDirection.Output, "");
        }