Skip to content
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

Language localisation #1

Open
ulaker opened this issue Dec 18, 2018 · 6 comments
Open

Language localisation #1

ulaker opened this issue Dec 18, 2018 · 6 comments

Comments

@ulaker
Copy link

ulaker commented Dec 18, 2018

Needs adaption to environments other than US keyboard HID.
Key code files for various languages would be nice or at least a hint on how to create and integrate in the arduino ide.

@CC0126
Copy link
Collaborator

CC0126 commented Dec 19, 2018

Haven't seen these KeyBoards layouts. Are these KeyBoard looks the same with US HID KeyBoards?

@ulaker
Copy link
Author

ulaker commented Dec 21, 2018

Key codes should be mapped to char codes depending on the target language country setting of the environment of the intended operation. For example a letter/character "z" in the source code appears as "y" and vice versa when us keyboard used on computer running german windows (or any other operating system) Same with any other country/language keyboard needs to be right in order to work. The USBNINJA needs to emulate the correct language keyboard mapping, else the injection of keys does not work as intended.

@keldnorman
Copy link

I found something here that looks like a solution (untestet) where you can add a language definition like #define LAYOUT_DANISH --> https://github.com/rsrdesarrollo/DigistumpArduino/tree/master/digistump-avr

@CC0126
Copy link
Collaborator

CC0126 commented Dec 22, 2018

I put that file into it, please update it and let's try~

@ulaker
Copy link
Author

ulaker commented Dec 22, 2018

Thank you for refining the code. At the first glance it looks to work now. Kind of, there still are a few characters that need tweeking, but the working mechanism is in place. The rest seems to be ironing out the keys that produce wrong input.

Seazon greetings from Germany and big thank you to both.

@CC0126
Copy link
Collaborator

CC0126 commented Dec 22, 2018

Okay, can you tell us what Key produce the wrong input? (We have no gremany keyboard here😂)
And,you should define the Layouts before you include <NinjaKeyboard.h> in your project😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants