From 215a21f9b62aa50d9ca4037ca0a22f5b0920f373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pazdiora?= Date: Thu, 7 Jan 2021 23:21:33 +0100 Subject: rough GUI integration of "Device Hardware ID" --- grapher/Form1.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'grapher/Form1.cs') diff --git a/grapher/Form1.cs b/grapher/Form1.cs index 0c12b86..e149163 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -71,6 +71,7 @@ namespace grapher gainOffsetToolStripMenuItem, legacyOffsetToolStripMenuItem, AutoWriteMenuItem, + UseSpecificDeviceMenuItem, ScaleMenuItem, DPITextBox, PollRateTextBox, -- cgit v1.2.3 From 0e60e22b73dd0693b349cbb63cf9a390c01fd5dd Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Tue, 12 Jan 2021 17:01:18 -0500 Subject: filter raw input based on id use device id (from device instance) over first hardware id use buffered method for all ioctls update gui/DeviceIDManager to match driver behavior respond to device change events desync MouseData and PointData accessors --- grapher/Form1.cs | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'grapher/Form1.cs') diff --git a/grapher/Form1.cs b/grapher/Form1.cs index e149163..afa7a50 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -155,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; @@ -187,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) - { - - } } } -- cgit v1.2.3