예제 #1
0
        public static ClKeyboard GenerateFelix()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 15;
            kb.Name              = "Felix";
            kb.SaveFileExtension = "arb2f";
            kb.Commands.Add("uniqueksetkey");

            // buttons
            for (var i = 0; i < 4; i++)
            {
                for (var j = 0; j < 5; j++)
                {
                    var bi = new ClButtonInfo();
                    bi.X       = i;
                    bi.Y       = j;
                    bi.Command = 0;
                    bi.GW      = 72;
                    bi.GH      = 72;


                    bi.GX = 5 + i * 77;
                    bi.GY = 5 + j * 77;
                    kb.Buttons.Add(bi);
                }
            }
            return(kb);
        }
예제 #2
0
        public static ClKeyboard GenerateDivergeTM()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 13;
            kb.Name              = "Diverge TM 1 and 2";
            kb.SaveFileExtension = "arb2dtm";
            kb.Commands.Add("uniqueksetkey");
            kb.Commands.Add("uniqueksetsubkey");

            // buttons
            for (var i = 0; i < 6; i++)
            {
                for (var j = 0; j < 4; j++)
                {
                    for (var s = 0; s < 2; s++)
                    {
                        if ((i == 5) && (j == 3))
                        {
                            //do nothing
                        }
                        else
                        {
                            var bi = new ClButtonInfo();
                            bi.X       = i;
                            bi.Y       = j;
                            bi.Command = s;
                            bi.GW      = 72;
                            bi.GH      = 72;


                            if (s == 0)
                            {
                                bi.GX = 5 + i * 77;
                            }
                            else
                            {
                                bi.GX = s * 935 - (5 + i * 77);
                            }
                            if ((i == 4) && (j == 3))
                            {
                                bi.GW = 149;
                                if (s == 1)
                                {
                                    bi.GX = bi.GX - 77;
                                }
                            }
                            bi.GY = 5 + j * 77;
                            kb.Buttons.Add(bi);
                        }
                    }
                }
            }
            return(kb);
        }
예제 #3
0
        public static ClKeyboard GenerateDiverge2()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 8;
            kb.Name              = "Diverge 2 and 3";
            kb.SaveFileExtension = "arb2d2";
            kb.Commands.Add("uniqueksetkey");
            kb.Commands.Add("uniqueksetsubkey");

            // buttons
            for (var i = 0; i < 8; i++)
            {
                for (var j = 0; j < 5; j++)
                {
                    for (var s = 0; s < 2; s++)
                    {
                        if ((i != 7) || (j == 4))
                        {
                            var bi = new ClButtonInfo();
                            bi.X       = i;
                            bi.Y       = j;
                            bi.Command = s;
                            bi.GW      = 72;
                            bi.GH      = 72;
                            if (s == 0)
                            {
                                bi.GX = 5 + i * 77;
                            }
                            else
                            {
                                bi.GX = s * 1242 - (5 + i * 77);
                            }
                            bi.GY = 5 + j * 77;
                            kb.Buttons.Add(bi);
                        }
                    }
                }
            }
            return(kb);
        }
예제 #4
0
        public static ClKeyboard GenerateTerminusMini()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 6;
            kb.Name              = "Terminus Mini";
            kb.SaveFileExtension = "arb2tm";
            kb.Commands.Add("uniqueksetkey");

            // buttons
            for (var i = 0; i < 12; i++)
            {
                for (var j = 0; j < 4; j++)
                {
                    if (((i == 5) && (j == 3)) || ((i == 7) && (j == 3)))
                    {
                        //do nothing
                    }
                    else
                    {
                        var bi = new ClButtonInfo();
                        bi.X       = i;
                        bi.Y       = j;
                        bi.Command = 0;
                        bi.GW      = 72;
                        bi.GH      = 72;


                        bi.GX = 5 + i * 77;
                        if (((i == 4) && (j == 3)) || ((i == 6) && (j == 3)))
                        {
                            bi.GW = 149;
                        }
                        bi.GY = 5 + j * 77;
                        kb.Buttons.Add(bi);
                    }
                }
            }
            return(kb);
        }
예제 #5
0
        public static ClKeyboard GenerateTerminusMini2()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 6;
            kb.Name              = "Terminus Mini 2";
            kb.SaveFileExtension = "arb2tm2";
            kb.Commands.Add("uniqueksetkey");

            // buttons
            for (var i = 0; i < 10; i++)
            {
                for (var j = 0; j < 4; j++)
                {
                    //if ((i == 5 && j == 3) || (i == 7 && j == 3))
                    {
                        //do nothing
                    }
                    //else
                    {
                        var bi = new ClButtonInfo();
                        bi.X       = i;
                        bi.Y       = j;
                        bi.Command = 0;
                        bi.GW      = 72;
                        bi.GH      = 72;

                        if ((i > 4) && (j < 3))
                        {
                            bi.GX = 5 + (i + 2) * 77;
                        }
                        else
                        {
                            bi.GX = 5 + i * 77;
                        }

                        if ((i > 4) && (j == 3))
                        {
                            bi.GX = 5 + (i + 1) * 77;
                        }


                        if ((i > 5) && (j == 3))
                        {
                            bi.GX = 5 + (i + 2) * 77;
                        }

                        if (((i == 4) && (j == 3)) || ((i == 5) && (j == 3)))
                        {
                            bi.GW = 149;
                        }
                        bi.GY = 5 + j * 77;
                        kb.Buttons.Add(bi);
                    }
                }
            }


            for (var i = 5; i < 7; i++)
            {
                for (var j = 0; j < 3; j++)
                {
                    var bi = new ClButtonInfo();
                    bi.Y = 4;
                    if ((i == 5) && (j == 2))
                    {
                        bi.X = 2;
                    }
                    else if ((i == 5) && (j == 1))
                    {
                        bi.X = 3;
                    }
                    else if ((i == 5) && (j == 0))
                    {
                        bi.X = 4;
                    }
                    else if ((i == 6) && (j == 0))
                    {
                        bi.X = 5;
                    }
                    else if ((i == 6) && (j == 1))
                    {
                        bi.X = 6;
                    }
                    else if ((i == 6) && (j == 2))
                    {
                        bi.X = 7;
                    }
                    bi.Command = 0;
                    bi.GW      = 72;
                    bi.GH      = 72;


                    bi.GX = 5 + i * 77;
                    bi.GY = 5 + j * 77;
                    kb.Buttons.Add(bi);
                }
            }

            return(kb);
        }
예제 #6
0
        public static ClKeyboard GenerateTerminus2()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 10;
            kb.Name              = "Terminus 2";
            kb.SaveFileExtension = "arb2t2";
            kb.Commands.Add("uniqueksetkey");
            kb.Commands.Add("uniqueksetsubkey");

            // buttons
            for (var i = 0; i < 7; i++)
            {
                for (var j = 0; j < 5; j++)
                {
                    if ((j == 4) && ((i == 2) || (i == 6)))
                    {
                        // do nothing
                    }
                    else
                    {
                        var bi = new ClButtonInfo();
                        bi.X       = i;
                        bi.Y       = j;
                        bi.Command = 0;
                        bi.GW      = 72;
                        bi.GH      = 72;

                        if ((j == 4) && (i < 5))
                        {
                            bi.GW = 91;
                        }


                        if ((j == 4) && (i == 5))
                        {
                            bi.GW = 149;
                        }

                        bi.GX = 5 + i * 77;

                        if ((j == 4) && (i < 2))
                        {
                            bi.GX = 5 + i * 97;
                        }

                        if ((j == 4) && (i > 2) && (i < 5))
                        {
                            bi.GX = 5 + (i - 1) * 96;
                        }
                        bi.GY = 5 + j * 77;
                        kb.Buttons.Add(bi);
                    }
                }
            }


            for (var i = 0; i < 7; i++)
            {
                for (var j = 0; j < 5; j++)
                {
                    if ((j == 4) && (i == 1))
                    {
                        // do nothing
                    }
                    else
                    {
                        var bi = new ClButtonInfo();
                        bi.X       = i;
                        bi.Y       = j;
                        bi.Command = 1;
                        bi.GW      = 72;
                        bi.GH      = 72;


                        if ((j == 4) && (i == 0))
                        {
                            bi.GW = 149;
                        }

                        bi.GX = 544 + i * 77;
                        bi.GY = 5 + j * 77;
                        kb.Buttons.Add(bi);
                    }
                }
            }

            return(kb);
        }
예제 #7
0
        public static ClKeyboard GenerateDiverge2()
        {
            var kb = new ClKeyboard();

            kb.MaxLayers         = 8;
            kb.Name              = "Diverge 2 and 3";
            kb.SaveFileExtension = "arb2d2";
            kb.Commands.Add("uniqueksetkey");
            kb.Commands.Add("uniqueksetsubkey");

            var basexl = 5;
            var basexr = 1237;
            var basey  = 5;

            // buttons
            for (var i = 0; i < 8; i++)
            {
                for (var j = 0; j < 5; j++)
                {
                    for (var s = 0; s < 2; s++)
                    {
                        if ((i != 7) || (j == 4))
                        {
                            var bi = new ClButtonInfo();
                            bi.X       = i;
                            bi.Y       = j;
                            bi.Command = s;
                            bi.GW      = 72;
                            bi.GH      = 72;

                            bi.GX = i * 77;
                            bi.GY = basey + j * 77;

                            if (i == 1)
                            {
                                bi.GY += 55;
                            }
                            else if (i == 2 || i == 5)
                            {
                                bi.GY += 20;
                            }
                            else if (i == 6)
                            {
                                bi.GY += 30;
                            }

                            if (j == 4 && i >= 5)
                            {
                                bi.GX += 20;
                                if (i == 5)
                                {
                                    bi.GY += 20;
                                }
                                else if (i == 6)
                                {
                                    bi.GY += 30;
                                }
                                else if (i == 7)
                                {
                                    bi.GY += 90;
                                }
                            }

                            if (s == 0)
                            {
                                bi.GX = basexl + bi.GX;
                            }
                            else
                            {
                                bi.GX = basexr - bi.GX;
                            }

                            kb.Buttons.Add(bi);
                        }
                    }
                }
            }
            return(kb);
        }