summaryrefslogtreecommitdiff
path: root/grapher/Form1.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-01-12 17:01:18 -0500
committera1xd <[email protected]>2021-01-12 17:01:18 -0500
commit0e60e22b73dd0693b349cbb63cf9a390c01fd5dd (patch)
tree493bfaeb2b59b7db452c52e9ec9713e8b8296510 /grapher/Form1.cs
parentSmall behavior improvements (diff)
downloadrawaccel-0e60e22b73dd0693b349cbb63cf9a390c01fd5dd.tar.xz
rawaccel-0e60e22b73dd0693b349cbb63cf9a390c01fd5dd.zip
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
Diffstat (limited to 'grapher/Form1.cs')
-rw-r--r--grapher/Form1.cs21
1 files changed, 5 insertions, 16 deletions
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)
- {
-
- }
}
}