private void btnConnectTouch_Click(object sender, EventArgs e) { FormConnect formConnect; if (p2 != null) formConnect = new FormConnect(this, ControlInput.Type.Touch, p2); else formConnect = new FormConnect(this, ControlInput.Type.Touch); formConnect.ShowDialog(); }
private void btnConnectKeyboard_Click(object sender, EventArgs e) { FormConnect formConnect; if (p1 != null) formConnect = new FormConnect(this, ControlInput.Type.Keyboard, p1); else formConnect = new FormConnect(this, ControlInput.Type.Keyboard); formConnect.ShowDialog(); }
private void btnConnectKinect_Click(object sender, EventArgs e) { FormConnect formConnect; if (p4 != null) formConnect = new FormConnect(this, ControlInput.Type.Kinect, p4); else formConnect = new FormConnect(this, ControlInput.Type.Kinect); formConnect.ShowDialog(); }
private void btnConnectGamepad_Click(object sender, EventArgs e) { FormConnect formConnect; if (p3 != null) formConnect = new FormConnect(this, ControlInput.Type.Gamepad, p3); else formConnect = new FormConnect(this, ControlInput.Type.Gamepad); formConnect.ShowDialog(); }