summaryrefslogtreecommitdiff
path: root/grapher/Form1.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-03-11 06:49:05 -0500
committera1xd <[email protected]>2021-03-11 06:49:05 -0500
commit66f1f4c20420fa4abe6721efd4edf17589466dd0 (patch)
tree1d401f7d99570cb0e560944af52167060295bf8b /grapher/Form1.cs
parentMerge pull request #71 from a1xd/fix-dev-id (diff)
downloadrawaccel-66f1f4c20420fa4abe6721efd4edf17589466dd0.tar.xz
rawaccel-66f1f4c20420fa4abe6721efd4edf17589466dd0.zip
add handler for unhandled exceptions
Diffstat (limited to 'grapher/Form1.cs')
-rw-r--r--grapher/Form1.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs
index 6927211..51f1355 100644
--- a/grapher/Form1.cs
+++ b/grapher/Form1.cs
@@ -176,13 +176,16 @@ namespace grapher
protected override void WndProc(ref Message m)
{
- if (m.Msg == 0x00ff) // WM_INPUT
+ if (!(AccelGUI is null))
{
- AccelGUI.MouseWatcher.ReadMouseMove(m);
- }
- else if (m.Msg == 0x00fe) // WM_INPUT_DEVICE_CHANGE
- {
- AccelGUI.UpdateInputManagers();
+ 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);