The MouseChoose combobox now has the primary mouse selected by default.

This commit is contained in:
the_fiddler 2008-05-04 18:29:03 +00:00
parent 58cd07ec2a
commit 201f671cd9
2 changed files with 4 additions and 2 deletions

View file

@ -359,14 +359,14 @@
// //
this.PollTimer.Interval = 10; this.PollTimer.Interval = 10;
// //
// S04_Input_Logger // InputLogger
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(432, 378); this.ClientSize = new System.Drawing.Size(432, 378);
this.Controls.Add(this.tabControl); this.Controls.Add(this.tabControl);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Name = "S04_Input_Logger"; this.Name = "InputLogger";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "S04: Input Logger"; this.Text = "S04: Input Logger";
this.tabControl.ResumeLayout(false); this.tabControl.ResumeLayout(false);

View file

@ -82,6 +82,8 @@ namespace Examples.Tests
// Add available mice to the mouse input logger. // Add available mice to the mouse input logger.
ChooseMouse.Items.Add(String.Format("Mouse {0} ({1})", 0, hidden.Mouse.Description)); ChooseMouse.Items.Add(String.Format("Mouse {0} ({1})", 0, hidden.Mouse.Description));
ChooseMouse.SelectedIndex = 0;
//hidden.Mouse.Move += LogMouseMove; //hidden.Mouse.Move += LogMouseMove;
hidden.Mouse.ButtonDown += LogMouseButtonDown; hidden.Mouse.ButtonDown += LogMouseButtonDown;
hidden.Mouse.ButtonUp += LogMouseButtonUp; hidden.Mouse.ButtonUp += LogMouseButtonUp;