private void BuildForm() { RLocalInputMap map = this.keyboardInput.map; var startX = 20; var startY = 20; var KeyLabel = new System.Windows.Forms.Label(); KeyLabel.AutoSize = true; KeyLabel.Location = new System.Drawing.Point(212, 25); KeyLabel.Name = "KeyLabel"; KeyLabel.Size = new System.Drawing.Size(27, 13); KeyLabel.TabIndex = 2; KeyLabel.Text = "N/A"; this.Controls.Add(KeyLabel); }
public RLocalInputMap BuildDefaultMap() { RLocalInputMap map = new RLocalInputMap(); map.Add("J", 0); // X map.Add("K", 1); // A map.Add("L", 2); // B map.Add("I", 3); // Y map.Add("U", 4); // LB map.Add("O", 5); // RB map.Add("Backslash", 6); // Back map.Add("Return", 7); // Start map.Add("V", 7); // Start map.Add("W", 1000); // Up, Right, Down, Left map.Add("D", 1002); map.Add("S", 1004); map.Add("A", 1006); map.Add("D7", 1300); // LT map.Add("D9", 1301); // RT return(map); }
public void ApplyDefaultMap() { RLocalInputMap map = BuildDefaultMap(); ApplyMap(map); }
public void ApplyMap(RLocalInputMap map) { this.map = map; }
public RLocalKeyboardInput() { this.map = BuildDefaultMap(); }