Beispiel #1
0
        public DS3Device()
        {
            LSx = new InputChannelTypes.JoyAxis("Left Stick X", "", Properties.Resources.PS3_Left_Stick.ToImageSource());
            LSy = new InputChannelTypes.JoyAxis("Left Stick Y", "", Properties.Resources.PS3_Left_Stick.ToImageSource());
            RSx = new InputChannelTypes.JoyAxis("Right Stick X", "", Properties.Resources.PS3_Right_Stick.ToImageSource());
            RSy = new InputChannelTypes.JoyAxis("Right Stick Y", "", Properties.Resources.PS3_Right_Stick.ToImageSource());

            L3 = new InputChannelTypes.Button("L3", "Left stick", Properties.Resources.PS3_Left_Stick.ToImageSource());
            R3 = new InputChannelTypes.Button("R3", "Right Stick", Properties.Resources.PS3_Right_Stick.ToImageSource());

            L2 = new InputChannelTypes.JoyAxis("L2", "Left Trigger", Properties.Resources.PS3_L2.ToImageSource())
            {
                min_Value = 0
            };
            R2 = new InputChannelTypes.JoyAxis("R2", "Right Trigger", Properties.Resources.PS3_R2.ToImageSource())
            {
                min_Value = 0
            };
            L1 = new InputChannelTypes.Button("L1", "Left Bumper", Properties.Resources.PS3_L1.ToImageSource());
            R1 = new InputChannelTypes.Button("R1", "Right Bumper", Properties.Resources.PS3_R1.ToImageSource());

            DUp    = new InputChannelTypes.Button("DPad Up", "", Properties.Resources.PS3_Dpad_Up.ToImageSource());
            DDown  = new InputChannelTypes.Button("DPad Down", "", Properties.Resources.PS3_Dpad_Down.ToImageSource());
            DLeft  = new InputChannelTypes.Button("DPad Left", "", Properties.Resources.PS3_Dpad_Left.ToImageSource());
            DRight = new InputChannelTypes.Button("DPad Right", "", Properties.Resources.PS3_Dpad_Right.ToImageSource());

            Cross    = new InputChannelTypes.Button("Cross", "", Properties.Resources.PS3_Cross.ToImageSource());
            Circle   = new InputChannelTypes.Button("Circle", "", Properties.Resources.PS3_Circle.ToImageSource());
            Square   = new InputChannelTypes.Button("Square", "", Properties.Resources.PS3_Square.ToImageSource());
            Triangle = new InputChannelTypes.Button("Triangle", "", Properties.Resources.PS3_Triangle.ToImageSource());

            vCross = new InputChannelTypes.JoyAxis("Variable Cross", "", Properties.Resources.PS3_Cross.ToImageSource())
            {
                min_Value = 0
            };
            vCircle = new InputChannelTypes.JoyAxis("Variable Circle", "", Properties.Resources.PS3_Circle.ToImageSource())
            {
                min_Value = 0
            };
            vSquare = new InputChannelTypes.JoyAxis("Variable Square", "", Properties.Resources.PS3_Square.ToImageSource())
            {
                min_Value = 0
            };
            vTriangle = new InputChannelTypes.JoyAxis("Variable Triangle", "", Properties.Resources.PS3_Triangle.ToImageSource())
            {
                min_Value = 0
            };

            PS     = new InputChannelTypes.Button("PS", "");
            Select = new InputChannelTypes.Button("Select", "", Properties.Resources.PS3_Select.ToImageSource());
            Start  = new InputChannelTypes.Button("Start", "", Properties.Resources.PS3_Start.ToImageSource());

            Battery  = new InputChannelTypes.JoyAxis("Battery Level", "");
            Charging = new InputChannelTypes.Button("Charging", "");

            BigRumble   = new OutputChannelTypes.RumbleMotor("Big Rumble", "");
            SmallRumble = new OutputChannelTypes.RumbleMotor("Small Rumble", "");
            LightBar    = new OutputChannelTypes.RGBLED("Light Bar", "");
        }
Beispiel #2
0
        public x360device()
        {
            LSx = new InputChannelTypes.JoyAxis("Left Stick X", "", Properties.Resources._24_360_Left_Stick.ToImageSource());
            LSy = new InputChannelTypes.JoyAxis("Left Stick Y", "", Properties.Resources._24_360_Left_Stick.ToImageSource());
            RSx = new InputChannelTypes.JoyAxis("Right Stick X", "", Properties.Resources._24_360_Right_Stick.ToImageSource());
            RSy = new InputChannelTypes.JoyAxis("Right Stick Y", "", Properties.Resources._24_360_Right_Stick.ToImageSource());

            LS = new InputChannelTypes.Button("Left Stick", "", Properties.Resources._24_360_Left_Stick.ToImageSource());
            RS = new InputChannelTypes.Button("Right Stick", "", Properties.Resources._24_360_Right_Stick.ToImageSource());

            LT = new InputChannelTypes.JoyAxis("Left Trigger", "", Properties.Resources._24_360_LT.ToImageSource())
            {
                min_Value = 0
            };
            RT = new InputChannelTypes.JoyAxis("Right Trigger", "", Properties.Resources._24_360_RT.ToImageSource())
            {
                min_Value = 0
            };
            LB = new InputChannelTypes.Button("Left Bumper", "", Properties.Resources._24_360_LB.ToImageSource());
            RB = new InputChannelTypes.Button("Right Bumper", "", Properties.Resources._24_360_RB.ToImageSource());

            DUp    = new InputChannelTypes.Button("DPad Up", "", Properties.Resources._24_360_Dpad_Up.ToImageSource());
            DDown  = new InputChannelTypes.Button("DPad Down", "", Properties.Resources._24_360_Dpad_Down.ToImageSource());
            DLeft  = new InputChannelTypes.Button("DPad Left", "", Properties.Resources._24_360_Dpad_Left.ToImageSource());
            DRight = new InputChannelTypes.Button("DPad Right", "", Properties.Resources._24_360_Dpad_Right.ToImageSource());

            A = new InputChannelTypes.Button("A", "", Properties.Resources._24_360_A.ToImageSource());
            B = new InputChannelTypes.Button("B", "", Properties.Resources._24_360_B.ToImageSource());
            X = new InputChannelTypes.Button("X", "", Properties.Resources._24_360_X.ToImageSource());
            Y = new InputChannelTypes.Button("Y", "", Properties.Resources._24_360_Y.ToImageSource());

            Start = new InputChannelTypes.Button("Start", "", Properties.Resources._24_360_Start.ToImageSource());
            Back  = new InputChannelTypes.Button("Back", "", Properties.Resources._24_360_Back.ToImageSource());
            Guide = new InputChannelTypes.Button("Guide", "", Properties.Resources._24_360_Guide.ToImageSource());

            BigRumble   = new OutputChannelTypes.RumbleMotor("Big Rumble", "");
            SmallRumble = new OutputChannelTypes.RumbleMotor("Small Rumble", "");
        }