public static Keyboard GenerateFelix() { var kb = new Keyboard(); kb.MaxEEPROM = 900; kb.MaxLayers = 15; kb.Name = "Felix"; kb.SaveFileExtension = "arb2xf"; kb.Commands.Add("uniqueksetkey"); kb.XCount = 4; kb.YCount = 5; // buttons for (var i = 0; i < 4; i++) { for (var j = 0; j < 5; j++) { var bi = new ButtonInfo(); 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); }
public static Keyboard GenerateDivergeTM() { var kb = new Keyboard(); kb.MaxEEPROM = 900; kb.MaxLayers = 13; kb.Name = "Diverge TM 1 and 2"; kb.SaveFileExtension = "arb2xdtm"; kb.Commands.Add("uniqueksetkey"); kb.Commands.Add("uniqueksetsubkey"); kb.XCount = 6; kb.YCount = 4; // 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 ButtonInfo(); 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); }
public ButtonInfo(ButtonInfo input) { this.GX = input.GX; this.GY = input.GY; this.X = input.X; this.Y = input.Y; this.GW = input.GW; this.GH = input.GH; this.Command = input.Command; }
public static Keyboard GenerateTerminusMini() { var kb = new Keyboard(); kb.MaxEEPROM = 900; kb.MaxLayers = 6; kb.Name = "Terminus Mini"; kb.SaveFileExtension = "arb2xtm"; kb.Commands.Add("uniqueksetkey"); kb.XCount = 12; kb.YCount = 4; // 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 ButtonInfo(); 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); }
public static Keyboard GenerateDiverge2() { var kb = new Keyboard(); kb.MaxLayers = 8; kb.MaxEEPROM = 900; kb.Name = "Diverge 2 and 3"; kb.SaveFileExtension = "arb2xd2"; kb.Commands.Add("uniqueksetkey"); kb.Commands.Add("uniqueksetsubkey"); kb.XCount = 8; kb.YCount = 5; 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 ButtonInfo(); 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); }
public static Keyboard GenerateTerminusMini2() { var kb = new Keyboard(); kb.MaxEEPROM = 900; kb.MaxLayers = 6; kb.Name = "Terminus Mini 2"; kb.SaveFileExtension = "arb2xtm2"; kb.Commands.Add("uniqueksetkey"); kb.XCount = 10; kb.YCount = 5; // buttons for (var i = 0; i < 10; i++) { for (var j = 0; j < 4; j++) { var bi = new ButtonInfo(); 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 ButtonInfo(); 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); }
public static Keyboard GenerateTerminus2() { var kb = new Keyboard(); kb.MaxEEPROM = 900; kb.MaxLayers = 10; kb.Name = "Terminus 2"; kb.SaveFileExtension = "arb2xt2"; kb.Commands.Add("uniqueksetkey"); kb.Commands.Add("uniqueksetsubkey"); kb.XCount = 7; kb.YCount = 5; // 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 ButtonInfo(); 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 ButtonInfo(); 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); }