Empiree / DeftSharp.Windows.Input

An open-source .NET library designed for keyboard and mouse control in Windows.
MIT License
73 stars 21 forks source link

Improve the NumpadListener class #39

Closed Empiree closed 7 months ago

Empiree commented 7 months ago

Currently, the NumpadListener class only takes one Action<Key> argument when subscribing. It would be great to extend its functionality, and add optional parameters that exist in the Subscribe() methods in the KeyboardListener class.

  1. A TimeSpan parameter that will accept the delegate trigger interval.
  2. A KeyboardEvent parameter that will accept the event type.

Also, you can think how to improve this class. Feel free to suggest your ideas!

I will be glad to answer all your questions!

jo3stevens commented 7 months ago

Hey @Empiree

I'm doing a code contribution as part of a job interview process and came across your project. I'm happy to pick up this enhancement.

Cheers

Empiree commented 7 months ago

Hi @jo3stevens !

Contributing to an open-source project is always cool. I'm glad you paid attention to this library :)

I'll do a review of your PR shortly. I would also be very happy if you put a star on this repository to promote it.

Have a nice day!