Exemple #1
0
        public MixModeConfig()
        {
            this.Name         = "Default MixMode Map";
            this.MapType      = MapType.MIX;
            this.LTrigger     = (int)Xbox360Axes.LeftTrigger + 65535;
            this.RTrigger     = (int)Xbox360Axes.RightTrigger + 65535;
            this.LeftRemoteX  = (int)Xbox360Axes.LeftThumbX + 65535;
            this.LeftRemoteY  = (int)Xbox360Axes.LeftThumbY + 65535;
            this.RightRemoteX = (int)Xbox360Axes.RightThumbX + 65535;
            this.RightRemoteY = (int)Xbox360Axes.RightThumbY + 65535;
            this.Keymap       = new Dictionary <byte, int>();
            Keymap.Add(4, (int)Xbox360Buttons.A + 65535);              //A
            Keymap.Add(22, (int)Xbox360Buttons.B + 65535);             //B
            Keymap.Add(27, (int)Xbox360Buttons.X + 65535);             //x
            Keymap.Add(29, (int)Xbox360Buttons.Y + 65535);             //y
            Keymap.Add(26, (int)Xbox360Buttons.LeftShoulder + 65535);  //L1
            Keymap.Add(20, (int)Xbox360Buttons.RightShoulder + 65535); //R1

            Keymap.Add(82, (int)Xbox360Buttons.Up + 65535);            //up
            Keymap.Add(81, (int)Xbox360Buttons.Down + 65535);          //down
            Keymap.Add(80, (int)Xbox360Buttons.Left + 65535);          //left
            Keymap.Add(79, (int)Xbox360Buttons.Right + 65535);         //right
            Keymap.Add(24, (int)Xbox360Buttons.LeftThumb + 65535);     //back L
            Keymap.Add(23, (int)Xbox360Buttons.RightThumb + 65535);    //back R
            Keymap.Add(89, 0);                                         //Help
            Keymap.Add(74, (int)Xbox360Buttons.Guide + 65535);         //Home

            Keymap.Add(88, (int)Xbox360Buttons.Back + 65535);          //back
            Keymap.Add(44, (int)Xbox360Buttons.Start + 65535);         //start
            Keymap.Add(96, (int)Xbox360Buttons.LeftThumb + 65535);     //LC
            Keymap.Add(97, (int)Xbox360Buttons.RightThumb + 65535);    //RC
        }
Exemple #2
0
        public XInputConfig()
        {
            this.Name         = "Default 360(XInput) Map";
            this.MapType      = MapType.XINPUT;
            this.LTrigger     = (int)Xbox360Axes.LeftTrigger;
            this.RTrigger     = (int)Xbox360Axes.RightTrigger;
            this.LeftRemoteX  = (int)Xbox360Axes.LeftThumbX;
            this.LeftRemoteY  = (int)Xbox360Axes.LeftThumbY;
            this.RightRemoteX = (int)Xbox360Axes.RightThumbX;
            this.RightRemoteY = (int)Xbox360Axes.RightThumbY;
            this.Keymap       = new Dictionary <byte, int>();
            Keymap.Add(4, (int)Xbox360Buttons.A);              //A
            Keymap.Add(22, (int)Xbox360Buttons.B);             //B
            Keymap.Add(27, (int)Xbox360Buttons.X);             //x
            Keymap.Add(29, (int)Xbox360Buttons.Y);             //y
            Keymap.Add(26, (int)Xbox360Buttons.LeftShoulder);  //L1
            Keymap.Add(20, (int)Xbox360Buttons.RightShoulder); //R1

            Keymap.Add(82, (int)Xbox360Buttons.Up);            //up
            Keymap.Add(81, (int)Xbox360Buttons.Down);          //down
            Keymap.Add(80, (int)Xbox360Buttons.Left);          //left
            Keymap.Add(79, (int)Xbox360Buttons.Right);         //right
            Keymap.Add(24, (int)Xbox360Buttons.LeftThumb);     //back L
            Keymap.Add(23, (int)Xbox360Buttons.RightThumb);    //back R
            Keymap.Add(89, 0);                                 //Help
            Keymap.Add(74, (int)Xbox360Buttons.Guide);         //Home

            Keymap.Add(88, (int)Xbox360Buttons.Back);          //back
            Keymap.Add(44, (int)Xbox360Buttons.Start);         //start
            Keymap.Add(96, (int)Xbox360Buttons.LeftThumb);     //LC
            Keymap.Add(97, (int)Xbox360Buttons.RightThumb);    //RC
        }
Exemple #3
0
        public ScriptModeConfig()
        {
            this.Name    = "Default Script Map";
            this.MapType = MapType.SCRIPT;
            this.Keymap  = new Dictionary <byte, Int32>();
            Keymap.Add(4, 1948332219);  //A
            Keymap.Add(22, 1948332219); //B
            Keymap.Add(27, 1948332219); //x
            Keymap.Add(29, 1948332219); //y
            Keymap.Add(26, 1948332219); //L1
            Keymap.Add(20, 1948332219); //R1

            Keymap.Add(82, 1948332219); //up
            Keymap.Add(81, 1948332219); //down
            Keymap.Add(80, 1948332219); //left
            Keymap.Add(79, 1948332219); //right
            Keymap.Add(24, 1948332219); //back L
            Keymap.Add(23, 1948332219); //back R
            Keymap.Add(89, 1948332219); //Help
            Keymap.Add(74, 1948332219); //Home

            Keymap.Add(88, 1948332219); //back
            Keymap.Add(44, 1948332219); //start
            Keymap.Add(96, 1948332219); //LC
            Keymap.Add(97, 1948332219); //RC

            this.LTrigger         = 1948332219;
            this.RTrigger         = 1948332219;
            this.LeftRemoteUp     = 1948332219;
            this.LeftRemoteDown   = 1948332219;
            this.LeftRemoteLeft   = 1948332219;
            this.LeftRemoteRight  = 1948332219;
            this.RightRemoteUp    = 1948332219;
            this.RightRemoteDown  = 1948332219;
            this.RightRemoteLeft  = 1948332219;
            this.RightRemoteRight = 1948332219;
        }
Exemple #4
0
        public KeyBoardConfig()
        {
            this.Name    = "Default KeyBoard Map";
            this.MapType = MapType.KEYBOARD;
            this.Keymap  = new Dictionary <byte, Int32>();
            Keymap.Add(4, (int)Keys.U);  //A
            Keymap.Add(22, (int)Keys.I); //B
            Keymap.Add(27, (int)Keys.O); //x
            Keymap.Add(29, (int)Keys.P); //y
            Keymap.Add(26, (int)Keys.Q); //L1
            Keymap.Add(20, (int)Keys.E); //R1

            Keymap.Add(82, (int)Keys.W); //up
            Keymap.Add(81, (int)Keys.S); //down
            Keymap.Add(80, (int)Keys.A); //left
            Keymap.Add(79, (int)Keys.D); //right
            Keymap.Add(24, (int)Keys.Z); //back L
            Keymap.Add(23, (int)Keys.C); //back R
            Keymap.Add(89, (int)Keys.T); //Help
            Keymap.Add(74, (int)Keys.Y); //Home

            Keymap.Add(88, (int)Keys.G); //back
            Keymap.Add(44, (int)Keys.H); //start
            Keymap.Add(96, (int)Keys.V); //LC
            Keymap.Add(97, (int)Keys.B); //RC

            this.LTrigger         = (int)Keys.J;
            this.RTrigger         = (int)Keys.L;
            this.LeftRemoteUp     = (int)Keys.W;
            this.LeftRemoteDown   = (int)Keys.S;
            this.LeftRemoteLeft   = (int)Keys.A;
            this.LeftRemoteRight  = (int)Keys.D;
            this.RightRemoteUp    = (int)Keys.Up;
            this.RightRemoteDown  = (int)Keys.Down;
            this.RightRemoteLeft  = (int)Keys.Left;
            this.RightRemoteRight = (int)Keys.Right;
        }