diff options
| author | a1xd <[email protected]> | 2021-01-14 12:27:42 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-14 12:27:42 -0500 |
| commit | 9ea8b4b94bba795eb5060b376baa8e5169e80272 (patch) | |
| tree | 493bfaeb2b59b7db452c52e9ec9713e8b8296510 /grapher/Form1.cs | |
| parent | Merge pull request #53 from termhn/patch-1 (diff) | |
| parent | filter raw input based on id (diff) | |
| download | rawaccel-9ea8b4b94bba795eb5060b376baa8e5169e80272.tar.xz rawaccel-9ea8b4b94bba795eb5060b376baa8e5169e80272.zip | |
Merge pull request #59 from aroidzap/apply-for-specific-device-gui
(GUI) Apply RawAccel only for specific device
Diffstat (limited to 'grapher/Form1.cs')
| -rw-r--r-- | grapher/Form1.cs | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs index 0c12b86..afa7a50 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -71,6 +71,7 @@ namespace grapher gainOffsetToolStripMenuItem, legacyOffsetToolStripMenuItem, AutoWriteMenuItem, + UseSpecificDeviceMenuItem, ScaleMenuItem, DPITextBox, PollRateTextBox, @@ -154,19 +155,18 @@ namespace grapher protected override void WndProc(ref Message m) { - if (m.Msg == 0x00ff) + if (m.Msg == 0x00ff) // WM_INPUT { AccelGUI.MouseWatcher.ReadMouseMove(m); } + else if (m.Msg == 0x00fe) // WM_INPUT_DEVICE_CHANGE + { + AccelGUI.UpdateInputManagers(); + } base.WndProc(ref m); } - private void Form1_Load(object sender, EventArgs e) - { - - } - public void ResetAutoScroll() { chartsPanel.AutoScrollPosition = Constants.Origin; @@ -186,16 +186,6 @@ namespace grapher }; } - private void RawAcceleration_Paint(object sender, PaintEventArgs e) - { - //AccelGUI.AccelCharts.DrawLastMovement(); - } - #endregion Method - - private void optionsPanel_Paint(object sender, PaintEventArgs e) - { - - } } } |