-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a LetterListener class #6
Comments
Hello @Empiree! Wishing you a blessed day! |
Hi Francisco! I'm glad you're interested in this project and ready to help in its development! :) Basically, the task is to create a new LetterListener class based on the example of NumpadListener. But unlike it, we have to take into account the variety of keyboards and their layouts in order to subscribe to all available buttons. It would be nice to also write xUnit tests to this class. Also, in addition to implementing this task, you can think about what other similar classes could be created, or how to extend existing ones. If you have any questions, I'm happy to answer them! |
@Empiree |
Thanks, wishing you a great day too! :) |
Hi @Empiree ! Hope you are having a great day! While I'm eager to expand to other layouts, the sheer number of keyboard distributions out there could make this search quite extensive. To streamline the process and ensure we cover the most relevant options, could you please provide guidance on which other distributions you'd like me to include? Thank you for your input! |
Hi, @PaezFrancisco ! I think we should start by focusing on the most popular QWERTY layouts. We can also add AZERTY (French layout), in the future we can extend the functionality of this class and add something new. |
Great! |
Hi @Empiree ! Hope you are having a great day! Regarding this issue, i have succesfully created the class and the classes for the test, all tho, i am facing issues while runing the DeftSharp.Windows.Input.Tests.csproj. I am using this version of .NET: 7.0.100 [C:\Program Files\dotnet\sdk]. |
Hi @PaezFrancisco ! This is a very strange issue, since the code does not use file handling anywhere and I and other developers have not encountered this. Therefore, it seems to me that the whole problem is with the local build of the project. Try to clean up the build and do a rebuild. Is your WPF.Playground project working ? Also, I suggest pulling up the new changes in the project to work with the current codebase. The project moved to .NET 8 a couple weeks ago, maybe that will help solve the problem. |
Hi @Empiree ! Pull Requests its created, please review it and let me know if there is any doubts.Thanks |
This class will handle pressing any letters on the keyboard. Follow the NumpadListener example.
The class must contain a
Subscribe
method that will acceptAction<Key>
and will subscribe to all possible letter buttons.And it must also contain an
Unsubscribe
method to unsubscribe from all keyboard events.Important! Use
GUID
to unsubscribe only those subscriptions that we have created inside this class.The text was updated successfully, but these errors were encountered: