More Update for AC1.0:

add DumpLog - get the AC detected controller config from the latest AC log file
fix Blend and Clear to apply any input kind (assign checks for the right one)
pull/104/head
bm98 10 years ago
parent c0d691b728
commit 30db0e48dc

298
Form1.Designer.cs generated

@ -95,6 +95,18 @@
this.label2 = new System.Windows.Forms.Label();
this.txFilter = new System.Windows.Forms.TextBox();
this.btClearFilter = new System.Windows.Forms.Button();
this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
this.cbxInvFlightPitch = new System.Windows.Forms.CheckBox();
this.cbxInvAimPitch = new System.Windows.Forms.CheckBox();
this.cbxInvViewPitch = new System.Windows.Forms.CheckBox();
this.cbxInvFlightYaw = new System.Windows.Forms.CheckBox();
this.cbxInvAimYaw = new System.Windows.Forms.CheckBox();
this.cbxInvViewYaw = new System.Windows.Forms.CheckBox();
this.cbxInvFlightRoll = new System.Windows.Forms.CheckBox();
this.cbxInvThrottle = new System.Windows.Forms.CheckBox();
this.cbxInvStrafeVert = new System.Windows.Forms.CheckBox();
this.cbxInvStrafeLat = new System.Windows.Forms.CheckBox();
this.cbxInvStrafeLon = new System.Windows.Forms.CheckBox();
this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
this.tsDDbtProfiles = new System.Windows.Forms.ToolStripDropDownButton();
this.tsBtReset = new System.Windows.Forms.ToolStripDropDownButton();
@ -110,18 +122,7 @@
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
this.cbxInvFlightPitch = new System.Windows.Forms.CheckBox();
this.cbxInvFlightYaw = new System.Windows.Forms.CheckBox();
this.cbxInvFlightRoll = new System.Windows.Forms.CheckBox();
this.cbxInvStrafeVert = new System.Windows.Forms.CheckBox();
this.cbxInvStrafeLat = new System.Windows.Forms.CheckBox();
this.cbxInvStrafeLon = new System.Windows.Forms.CheckBox();
this.cbxInvAimPitch = new System.Windows.Forms.CheckBox();
this.cbxInvAimYaw = new System.Windows.Forms.CheckBox();
this.cbxInvThrottle = new System.Windows.Forms.CheckBox();
this.cbxInvViewPitch = new System.Windows.Forms.CheckBox();
this.cbxInvViewYaw = new System.Windows.Forms.CheckBox();
this.btDumpLog = new System.Windows.Forms.Button();
this.UC_JoyPanel = new SCJMapper_V2.UC_JoyPanel();
this.cmCopyPaste.SuspendLayout();
this.panel2.SuspendLayout();
@ -135,8 +136,8 @@
this.tableLayoutPanel2.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.flowLayoutPanel2.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.flowLayoutPanel3.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.SuspendLayout();
//
// btDumpList
@ -389,7 +390,7 @@
this.treeView1.Name = "treeView1";
this.tlpanel.SetRowSpan(this.treeView1, 2);
this.treeView1.SelectedImageKey = "Selected";
this.treeView1.Size = new System.Drawing.Size(364, 685);
this.treeView1.Size = new System.Drawing.Size(364, 686);
this.treeView1.TabIndex = 16;
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
//
@ -564,8 +565,8 @@
this.tlpanel.RowCount = 5;
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 75F));
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 535F));
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 65F));
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 35F));
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 84F));
this.tlpanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
this.tlpanel.Size = new System.Drawing.Size(1054, 892);
this.tlpanel.TabIndex = 25;
@ -589,22 +590,24 @@
this.tableLayoutPanel1.Controls.Add(this.btDump, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.btGrab, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.btDumpList, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.btJSTuning, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.btDumpLog, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.btJSTuning, 0, 4);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
this.tableLayoutPanel1.Location = new System.Drawing.Point(376, 616);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 4;
this.tableLayoutPanel1.RowCount = 5;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(294, 150);
this.tableLayoutPanel1.Size = new System.Drawing.Size(294, 151);
this.tableLayoutPanel1.TabIndex = 23;
//
// btJSTuning
//
this.btJSTuning.Location = new System.Drawing.Point(3, 93);
this.btJSTuning.Location = new System.Drawing.Point(3, 123);
this.btJSTuning.Name = "btJSTuning";
this.btJSTuning.Size = new System.Drawing.Size(120, 24);
this.btJSTuning.TabIndex = 17;
@ -621,7 +624,7 @@
this.tableLayoutPanel2.Controls.Add(this.btJsReassign, 0, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
this.tableLayoutPanel2.Location = new System.Drawing.Point(376, 772);
this.tableLayoutPanel2.Location = new System.Drawing.Point(376, 773);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
@ -660,7 +663,7 @@
this.tableLayoutPanel3.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
this.tableLayoutPanel3.Location = new System.Drawing.Point(676, 772);
this.tableLayoutPanel3.Location = new System.Drawing.Point(676, 773);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
@ -722,7 +725,7 @@
this.flowLayoutPanel2.Controls.Add(this.txFilter);
this.flowLayoutPanel2.Controls.Add(this.btClearFilter);
this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel2.Location = new System.Drawing.Point(6, 772);
this.flowLayoutPanel2.Location = new System.Drawing.Point(6, 773);
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
this.flowLayoutPanel2.Size = new System.Drawing.Size(364, 78);
this.flowLayoutPanel2.TabIndex = 26;
@ -807,6 +810,126 @@
this.btClearFilter.UseVisualStyleBackColor = true;
this.btClearFilter.Click += new System.EventHandler(this.btClearFilter_Click);
//
// flowLayoutPanel3
//
this.flowLayoutPanel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.flowLayoutPanel3.Controls.Add(this.cbxInvFlightPitch);
this.flowLayoutPanel3.Controls.Add(this.cbxInvAimPitch);
this.flowLayoutPanel3.Controls.Add(this.cbxInvViewPitch);
this.flowLayoutPanel3.Controls.Add(this.cbxInvFlightYaw);
this.flowLayoutPanel3.Controls.Add(this.cbxInvAimYaw);
this.flowLayoutPanel3.Controls.Add(this.cbxInvViewYaw);
this.flowLayoutPanel3.Controls.Add(this.cbxInvFlightRoll);
this.flowLayoutPanel3.Controls.Add(this.cbxInvThrottle);
this.flowLayoutPanel3.Controls.Add(this.cbxInvStrafeVert);
this.flowLayoutPanel3.Controls.Add(this.cbxInvStrafeLat);
this.flowLayoutPanel3.Controls.Add(this.cbxInvStrafeLon);
this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.flowLayoutPanel3.Location = new System.Drawing.Point(676, 616);
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
this.flowLayoutPanel3.Size = new System.Drawing.Size(372, 151);
this.flowLayoutPanel3.TabIndex = 27;
//
// cbxInvFlightPitch
//
this.cbxInvFlightPitch.Location = new System.Drawing.Point(3, 3);
this.cbxInvFlightPitch.Name = "cbxInvFlightPitch";
this.cbxInvFlightPitch.Size = new System.Drawing.Size(168, 18);
this.cbxInvFlightPitch.TabIndex = 0;
this.cbxInvFlightPitch.Text = "Inv. Flight Pitch";
this.cbxInvFlightPitch.UseVisualStyleBackColor = true;
//
// cbxInvAimPitch
//
this.cbxInvAimPitch.Location = new System.Drawing.Point(3, 27);
this.cbxInvAimPitch.Name = "cbxInvAimPitch";
this.cbxInvAimPitch.Size = new System.Drawing.Size(168, 18);
this.cbxInvAimPitch.TabIndex = 0;
this.cbxInvAimPitch.Text = "Inv. Aim Pitch";
this.cbxInvAimPitch.UseVisualStyleBackColor = true;
//
// cbxInvViewPitch
//
this.cbxInvViewPitch.Location = new System.Drawing.Point(3, 51);
this.cbxInvViewPitch.Name = "cbxInvViewPitch";
this.cbxInvViewPitch.Size = new System.Drawing.Size(168, 18);
this.cbxInvViewPitch.TabIndex = 0;
this.cbxInvViewPitch.Text = "Inv. View Pitch";
this.cbxInvViewPitch.UseVisualStyleBackColor = true;
//
// cbxInvFlightYaw
//
this.cbxInvFlightYaw.Location = new System.Drawing.Point(3, 75);
this.cbxInvFlightYaw.Name = "cbxInvFlightYaw";
this.cbxInvFlightYaw.Size = new System.Drawing.Size(168, 18);
this.cbxInvFlightYaw.TabIndex = 0;
this.cbxInvFlightYaw.Text = "Inv. Flight Yaw";
this.cbxInvFlightYaw.UseVisualStyleBackColor = true;
//
// cbxInvAimYaw
//
this.cbxInvAimYaw.Location = new System.Drawing.Point(3, 99);
this.cbxInvAimYaw.Name = "cbxInvAimYaw";
this.cbxInvAimYaw.Size = new System.Drawing.Size(168, 18);
this.cbxInvAimYaw.TabIndex = 0;
this.cbxInvAimYaw.Text = "Inv. Aim Yaw";
this.cbxInvAimYaw.UseVisualStyleBackColor = true;
//
// cbxInvViewYaw
//
this.cbxInvViewYaw.Location = new System.Drawing.Point(3, 123);
this.cbxInvViewYaw.Name = "cbxInvViewYaw";
this.cbxInvViewYaw.Size = new System.Drawing.Size(168, 18);
this.cbxInvViewYaw.TabIndex = 0;
this.cbxInvViewYaw.Text = "Inv. View Yaw";
this.cbxInvViewYaw.UseVisualStyleBackColor = true;
//
// cbxInvFlightRoll
//
this.cbxInvFlightRoll.Location = new System.Drawing.Point(177, 3);
this.cbxInvFlightRoll.Name = "cbxInvFlightRoll";
this.cbxInvFlightRoll.Size = new System.Drawing.Size(168, 18);
this.cbxInvFlightRoll.TabIndex = 0;
this.cbxInvFlightRoll.Text = "Inv. Flight Roll";
this.cbxInvFlightRoll.UseVisualStyleBackColor = true;
//
// cbxInvThrottle
//
this.cbxInvThrottle.Location = new System.Drawing.Point(177, 27);
this.cbxInvThrottle.Name = "cbxInvThrottle";
this.cbxInvThrottle.Size = new System.Drawing.Size(168, 18);
this.cbxInvThrottle.TabIndex = 0;
this.cbxInvThrottle.Text = "Inv. Throttle";
this.cbxInvThrottle.UseVisualStyleBackColor = true;
//
// cbxInvStrafeVert
//
this.cbxInvStrafeVert.Location = new System.Drawing.Point(177, 51);
this.cbxInvStrafeVert.Name = "cbxInvStrafeVert";
this.cbxInvStrafeVert.Size = new System.Drawing.Size(168, 18);
this.cbxInvStrafeVert.TabIndex = 0;
this.cbxInvStrafeVert.Text = "Inv. Strafe vertical";
this.cbxInvStrafeVert.UseVisualStyleBackColor = true;
//
// cbxInvStrafeLat
//
this.cbxInvStrafeLat.Location = new System.Drawing.Point(177, 75);
this.cbxInvStrafeLat.Name = "cbxInvStrafeLat";
this.cbxInvStrafeLat.Size = new System.Drawing.Size(168, 18);
this.cbxInvStrafeLat.TabIndex = 0;
this.cbxInvStrafeLat.Text = "Inv. Strafe lateral";
this.cbxInvStrafeLat.UseVisualStyleBackColor = true;
//
// cbxInvStrafeLon
//
this.cbxInvStrafeLon.Location = new System.Drawing.Point(177, 99);
this.cbxInvStrafeLon.Name = "cbxInvStrafeLon";
this.cbxInvStrafeLon.Size = new System.Drawing.Size(168, 18);
this.cbxInvStrafeLon.TabIndex = 0;
this.cbxInvStrafeLon.Text = "Inv. Strafe longitudinal";
this.cbxInvStrafeLon.UseVisualStyleBackColor = true;
//
// toolStripStatusLabel2
//
this.toolStripStatusLabel2.BackColor = System.Drawing.Color.DarkKhaki;
@ -952,125 +1075,15 @@
this.statusStrip1.TabIndex = 26;
this.statusStrip1.Text = "statusStrip1";
//
// flowLayoutPanel3
//
this.flowLayoutPanel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.flowLayoutPanel3.Controls.Add(this.cbxInvFlightPitch);
this.flowLayoutPanel3.Controls.Add(this.cbxInvAimPitch);
this.flowLayoutPanel3.Controls.Add(this.cbxInvViewPitch);
this.flowLayoutPanel3.Controls.Add(this.cbxInvFlightYaw);
this.flowLayoutPanel3.Controls.Add(this.cbxInvAimYaw);
this.flowLayoutPanel3.Controls.Add(this.cbxInvViewYaw);
this.flowLayoutPanel3.Controls.Add(this.cbxInvFlightRoll);
this.flowLayoutPanel3.Controls.Add(this.cbxInvThrottle);
this.flowLayoutPanel3.Controls.Add(this.cbxInvStrafeVert);
this.flowLayoutPanel3.Controls.Add(this.cbxInvStrafeLat);
this.flowLayoutPanel3.Controls.Add(this.cbxInvStrafeLon);
this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.flowLayoutPanel3.Location = new System.Drawing.Point(676, 616);
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
this.flowLayoutPanel3.Size = new System.Drawing.Size(372, 150);
this.flowLayoutPanel3.TabIndex = 27;
//
// cbxInvFlightPitch
//
this.cbxInvFlightPitch.Location = new System.Drawing.Point(3, 3);
this.cbxInvFlightPitch.Name = "cbxInvFlightPitch";
this.cbxInvFlightPitch.Size = new System.Drawing.Size(168, 18);
this.cbxInvFlightPitch.TabIndex = 0;
this.cbxInvFlightPitch.Text = "Inv. Flight Pitch";
this.cbxInvFlightPitch.UseVisualStyleBackColor = true;
//
// cbxInvFlightYaw
//
this.cbxInvFlightYaw.Location = new System.Drawing.Point(3, 75);
this.cbxInvFlightYaw.Name = "cbxInvFlightYaw";
this.cbxInvFlightYaw.Size = new System.Drawing.Size(168, 18);
this.cbxInvFlightYaw.TabIndex = 0;
this.cbxInvFlightYaw.Text = "Inv. Flight Yaw";
this.cbxInvFlightYaw.UseVisualStyleBackColor = true;
//
// cbxInvFlightRoll
//
this.cbxInvFlightRoll.Location = new System.Drawing.Point(177, 3);
this.cbxInvFlightRoll.Name = "cbxInvFlightRoll";
this.cbxInvFlightRoll.Size = new System.Drawing.Size(168, 18);
this.cbxInvFlightRoll.TabIndex = 0;
this.cbxInvFlightRoll.Text = "Inv. Flight Roll";
this.cbxInvFlightRoll.UseVisualStyleBackColor = true;
//
// cbxInvStrafeVert
//
this.cbxInvStrafeVert.Location = new System.Drawing.Point(177, 51);
this.cbxInvStrafeVert.Name = "cbxInvStrafeVert";
this.cbxInvStrafeVert.Size = new System.Drawing.Size(168, 18);
this.cbxInvStrafeVert.TabIndex = 0;
this.cbxInvStrafeVert.Text = "Inv. Strafe vertical";
this.cbxInvStrafeVert.UseVisualStyleBackColor = true;
//
// cbxInvStrafeLat
//
this.cbxInvStrafeLat.Location = new System.Drawing.Point(177, 75);
this.cbxInvStrafeLat.Name = "cbxInvStrafeLat";
this.cbxInvStrafeLat.Size = new System.Drawing.Size(168, 18);
this.cbxInvStrafeLat.TabIndex = 0;
this.cbxInvStrafeLat.Text = "Inv. Strafe lateral";
this.cbxInvStrafeLat.UseVisualStyleBackColor = true;
//
// cbxInvStrafeLon
//
this.cbxInvStrafeLon.Location = new System.Drawing.Point(177, 99);
this.cbxInvStrafeLon.Name = "cbxInvStrafeLon";
this.cbxInvStrafeLon.Size = new System.Drawing.Size(168, 18);
this.cbxInvStrafeLon.TabIndex = 0;
this.cbxInvStrafeLon.Text = "Inv. Strafe longitudinal";
this.cbxInvStrafeLon.UseVisualStyleBackColor = true;
//
// cbxInvAimPitch
//
this.cbxInvAimPitch.Location = new System.Drawing.Point(3, 27);
this.cbxInvAimPitch.Name = "cbxInvAimPitch";
this.cbxInvAimPitch.Size = new System.Drawing.Size(168, 18);
this.cbxInvAimPitch.TabIndex = 0;
this.cbxInvAimPitch.Text = "Inv. Aim Pitch";
this.cbxInvAimPitch.UseVisualStyleBackColor = true;
//
// cbxInvAimYaw
//
this.cbxInvAimYaw.Location = new System.Drawing.Point(3, 99);
this.cbxInvAimYaw.Name = "cbxInvAimYaw";
this.cbxInvAimYaw.Size = new System.Drawing.Size(168, 18);
this.cbxInvAimYaw.TabIndex = 0;
this.cbxInvAimYaw.Text = "Inv. Aim Yaw";
this.cbxInvAimYaw.UseVisualStyleBackColor = true;
//
// cbxInvThrottle
// btDumpLog
//
this.cbxInvThrottle.Location = new System.Drawing.Point(177, 27);
this.cbxInvThrottle.Name = "cbxInvThrottle";
this.cbxInvThrottle.Size = new System.Drawing.Size(168, 18);
this.cbxInvThrottle.TabIndex = 0;
this.cbxInvThrottle.Text = "Inv. Throttle";
this.cbxInvThrottle.UseVisualStyleBackColor = true;
//
// cbxInvViewPitch
//
this.cbxInvViewPitch.Location = new System.Drawing.Point(3, 51);
this.cbxInvViewPitch.Name = "cbxInvViewPitch";
this.cbxInvViewPitch.Size = new System.Drawing.Size(168, 18);
this.cbxInvViewPitch.TabIndex = 0;
this.cbxInvViewPitch.Text = "Inv. View Pitch";
this.cbxInvViewPitch.UseVisualStyleBackColor = true;
//
// cbxInvViewYaw
//
this.cbxInvViewYaw.Location = new System.Drawing.Point(3, 123);
this.cbxInvViewYaw.Name = "cbxInvViewYaw";
this.cbxInvViewYaw.Size = new System.Drawing.Size(168, 18);
this.cbxInvViewYaw.TabIndex = 0;
this.cbxInvViewYaw.Text = "Inv. View Yaw";
this.cbxInvViewYaw.UseVisualStyleBackColor = true;
this.btDumpLog.Location = new System.Drawing.Point(3, 63);
this.btDumpLog.Name = "btDumpLog";
this.btDumpLog.Size = new System.Drawing.Size(120, 24);
this.btDumpLog.TabIndex = 25;
this.btDumpLog.Text = "Dump Log-->";
this.btDumpLog.UseVisualStyleBackColor = true;
this.btDumpLog.Click += new System.EventHandler(this.btDumpLog_Click);
//
// UC_JoyPanel
//
@ -1113,9 +1126,9 @@
this.tableLayoutPanel3.PerformLayout();
this.flowLayoutPanel2.ResumeLayout(false);
this.flowLayoutPanel2.PerformLayout();
this.flowLayoutPanel3.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.flowLayoutPanel3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@ -1212,6 +1225,7 @@
private System.Windows.Forms.CheckBox cbxInvStrafeLat;
private System.Windows.Forms.CheckBox cbxInvStrafeLon;
private System.Windows.Forms.CheckBox cbxInvThrottle;
private System.Windows.Forms.Button btDumpLog;
}
}

@ -653,7 +653,7 @@ namespace SCJMapper_V2
private void btAssign_Click( object sender, EventArgs e )
{
if ( m_AT.UpdateSelectedItem( JoystickCls.MakeThrottle( lblLastJ.Text, cbxThrottle.Checked ), InputMode ) ) {
if ( m_AT.UpdateSelectedItem( JoystickCls.MakeThrottle( lblLastJ.Text, cbxThrottle.Checked ), InputMode, true ) ) {
if ( m_AT.Dirty ) btDump.BackColor = MyColors.DirtyColor;
}
else MySounds.PlayNotfound( );
@ -662,7 +662,7 @@ namespace SCJMapper_V2
private void btBlend_Click( object sender, EventArgs e )
{
if ( m_AT.CanBlendBinding ) {
m_AT.UpdateSelectedItem( DeviceCls.BlendedInput, InputMode );
m_AT.UpdateSelectedItem( DeviceCls.BlendedInput, InputMode, false );
if ( m_AT.Dirty ) btDump.BackColor = MyColors.DirtyColor;
}
else MySounds.PlayCannot( );
@ -671,7 +671,7 @@ namespace SCJMapper_V2
private void btClear_Click( object sender, EventArgs e )
{
if ( m_AT.CanClearBinding ) {
m_AT.UpdateSelectedItem( "", InputMode );
m_AT.UpdateSelectedItem( "", InputMode, false );
if ( m_AT.Dirty ) btDump.BackColor = MyColors.DirtyColor;
}
else MySounds.PlayCannot( );
@ -690,6 +690,12 @@ namespace SCJMapper_V2
rtb.Text = String.Format( "-- {0} - SC Joystick Mapping --\n{1}", DateTime.Now, m_AT.ReportActions( ) );
}
private void btDumpLog_Click( object sender, EventArgs e )
{
rtb.Text = String.Format( "-- {0} - SC Joystick AC Log Controller Detection --\n{1}", DateTime.Now, SCLogExtract.ExtractLog( ) );
}
private void btGrab_Click( object sender, EventArgs e )
{
Grab( );
@ -1244,5 +1250,6 @@ namespace SCJMapper_V2
}
}

@ -128,7 +128,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABI
DwAAAk1TRnQBSQFMAgEBCAEAAaABCwGgAQsBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
DwAAAk1TRnQBSQFMAgEBCAEAAdABCwHQAQsBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace SCJMapper_V2
{
public class SCLogExtract
{
static private String ExtractValuableInfo( String inLine )
{
String retVal = "";
// detect what we would like to find..
if ( inLine.Contains( "Log Started" ) ) return String.Format("\t{0}\n", inLine);
if ( inLine.Contains( "ProductVersion" ) ) return String.Format( "\t{0}\n", inLine );
if ( inLine.Contains( "> Creating" ) ) return String.Format( "\t{0}\n", inLine );
return retVal;
}
static public String ExtractLog( )
{
String content = String.Format( "\n\n" );
String fname = SCPath.SCLastLog;
if ( String.IsNullOrEmpty( fname ) ) {
return String.Format( "\nCould not find a logfile\n" );
}
// first choice a defaultProfile.xml in the app dir distributed with the application ??? to be deleted ???
if ( File.Exists( fname ) ) {
using ( StreamReader sr = new StreamReader( fname ) ) {
while ( !sr.EndOfStream ) {
content += ExtractValuableInfo( sr.ReadLine( ) );
}
}
}
return content += String.Format( "\n\n" ); ; ;
}
}
}

@ -144,6 +144,26 @@ namespace SCJMapper_V2
}
/// <summary>
/// Returns the SC Client path e.g. "E:\G\StarCitizen\CitizenClient"
/// </summary>
static public String SCClientPath
{
get
{
log.Debug( "SCClientPath - Entry" );
String scp = SCBasePath;
if ( String.IsNullOrEmpty( scp ) ) return ""; // no valid one can be found
//
scp = Path.Combine( scp, "CitizenClient" );
if ( Directory.Exists( scp ) ) return scp;
log.WarnFormat( "SCClientDataPath - CitizenClient subfolder does not exist: {0}", scp );
return "";
}
}
/// <summary>
/// Returns the SC ClientData path e.g. "E:\G\StarCitizen\CitizenClient\Data"
/// </summary>
@ -152,10 +172,9 @@ namespace SCJMapper_V2
get
{
log.Debug( "SCClientDataPath - Entry" );
String scp = SCBasePath;
String scp = SCClientPath;
if ( String.IsNullOrEmpty( scp ) ) return ""; // no valid one can be found
//
scp = Path.Combine( scp, "CitizenClient" );
scp = Path.Combine( scp, "Data" );
if ( Directory.Exists( scp ) ) return scp;
@ -173,10 +192,9 @@ namespace SCJMapper_V2
get
{
log.Debug( "SCClientUSERPath - Entry" );
String scp = SCBasePath;
String scp = SCClientPath;
if ( String.IsNullOrEmpty( scp ) ) return "";
//
scp = Path.Combine( scp, "CitizenClient" );
scp = Path.Combine( scp, "USER" );
if ( Directory.Exists( scp ) ) return scp;
@ -186,6 +204,26 @@ namespace SCJMapper_V2
}
/// <summary>
/// Returns the SC ClientData path e.g. "E:\G\StarCitizen\CitizenClient\logs"
/// </summary>
static public String SCClientLogsPath
{
get
{
log.Debug( "SCClientLogsPath - Entry" );
String scp = SCClientPath;
if ( String.IsNullOrEmpty( scp ) ) return "";
//
scp = Path.Combine( scp, "logs" );
if ( Directory.Exists( scp ) ) return scp;
log.WarnFormat( "SCClientUSERPath - CitizenClient.logs subfolder does not exist: {0}", scp );
return "";
}
}
/// <summary>
/// Returns the SC ClientData path e.g. "E:\G\StarCitizen\CitizenClient\Data\Controls\Mappings"
/// </summary>
@ -227,6 +265,40 @@ namespace SCJMapper_V2
}
/// <summary>
/// Returns the SC log file path to the latest logfile e.g. "E:\G\StarCitizen\CitizenClient\logs\2014-12-22_17-53-01_Log_0.log"
/// </summary>
static public String SCLastLog
{
get
{
log.Debug( "SCLastLog - Entry" );
String scp = SCClientLogsPath;
if ( String.IsNullOrEmpty( scp ) ) return "";
//
try {
var files = Directory.EnumerateFiles( scp, "*.log", SearchOption.TopDirectoryOnly );
DateTime newestT = DateTime.FromFileTime( 1 ); // very old...
String newestF = "";
foreach ( String f in files ) {
try {
FileInfo finfo = new FileInfo( f );
if ( finfo.LastWriteTime > newestT ) {
newestF = f; newestT = finfo.LastWriteTime;
}
}
catch {
}
}
return newestF;
}
catch {
}
return "";
}
}
/// <summary>
/// Returns the relative path of DefaultProfile.xml
/// </summary>

@ -177,6 +177,7 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="OGL\RK4Integrator.cs" />
<Compile Include="SC\SCLogExtract.cs" />
<Compile Include="SC\SCDefaultProfile.cs" />
<Compile Include="SC\SCMappings.cs" />
<Compile Include="SC\SCPath.cs" />

@ -517,7 +517,7 @@ namespace SCJMapper_V2
/// First apply to the GUI tree where the selection happend then copy it over to master tree
/// </summary>
/// <param name="input">The new Text property</param>
public Boolean UpdateSelectedItem( String input, ActionCls.ActionDevice inKind )
public Boolean UpdateSelectedItem( String input, ActionCls.ActionDevice inKind, Boolean checkKind )
{
if ( ( Ctrl.SelectedNode.Level == 0 ) || ( Ctrl.SelectedNode.Level > 2 ) ) return false; // ERROR exit
if ( Ctrl.SelectedNode == null ) return false; // ERROR exit
@ -528,7 +528,7 @@ namespace SCJMapper_V2
// this is the main node with Action Cmd
ActionCls ac = FindActionObject( Ctrl.SelectedNode.Parent.Name, Ctrl.SelectedNode.Name );
if ( ac == null ) return false; // ERROR exit
if ( ac.actionDevice != inKind ) return false; // ERROR exit
if ( checkKind && ( ac.actionDevice != inKind ) ) return false; // ERROR exit
ActionCommandCls acc = FindActionInputObject( Ctrl.SelectedNode.Parent.Name, Ctrl.SelectedNode.Name, CommandFromNodeText( Ctrl.SelectedNode.Text ) );
if ( acc == null ) return false; // ERROR exit
@ -540,7 +540,7 @@ namespace SCJMapper_V2
ActionTreeNode atn = ( m_ctrl.SelectedNode.Parent as ActionTreeNode ); // the parent treenode
ActionCls ac = FindActionObject( atn.Parent.Name, atn.Name ); // the related action
if ( ac == null ) return false; // ERROR exit
if ( ac.actionDevice != inKind ) return false; // ERROR exit
if ( checkKind && ( ac.actionDevice != inKind ) ) return false; // ERROR exit
ActionCommandCls acc = FindActionInputObject( ac, m_ctrl.SelectedNode.Index );
if ( acc == null ) return false; // ERROR exit

Loading…
Cancel
Save