From e152372538b4f10a521d9c9de9e2995705998b2c Mon Sep 17 00:00:00 2001 From: mfakane <509998+mfakane@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:46:58 +0900 Subject: [PATCH] Add mouse to example --- RawInput.Sharp.SimpleExample/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RawInput.Sharp.SimpleExample/Program.cs b/RawInput.Sharp.SimpleExample/Program.cs index 2e2e124..1b9c296 100644 --- a/RawInput.Sharp.SimpleExample/Program.cs +++ b/RawInput.Sharp.SimpleExample/Program.cs @@ -31,7 +31,9 @@ // Register the HidUsageAndPage to watch any device. RawInputDevice.RegisterDevice(HidUsageAndPage.Keyboard, RawInputDeviceFlags.ExInputSink | RawInputDeviceFlags.NoLegacy, window.Handle); - + RawInputDevice.RegisterDevice(HidUsageAndPage.Mouse, + RawInputDeviceFlags.ExInputSink | RawInputDeviceFlags.NoLegacy, window.Handle); + Application.Run(); } finally