Skip to content

Commit

Permalink
Add mouse to example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfakane committed Jan 7, 2025
1 parent 271f8c0 commit e152372
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RawInput.Sharp.SimpleExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e152372

Please sign in to comment.