I think I will buy an english main keyboard then. However this needs some delay and is not relyable. Ctrl + Shift for windows and for linux alt space. I also tried to sitch the keyboard layout dynamically before pressing a key. You can use the Teensy or better switch to english layout. So for a german keyboard are out of scope with this api. We could use uint16_t which will blow the Array size (I guess thats what the Teensy code does). >=128 is used for shift and the rest is used for normal keys. But there is no option to set another bit in the array. So we need something like the SHIFT flag. On a german keyboard for example you need to press ALT GR in order to get. The problem here is, that english layout works with normal keys + shift. I tried to adapt the official keyboard API to another layout (german as example). Also this makes it clear that you cant change the layout at runtime, there is always this guy who tries to abuse this and it just wont work ) I tend to switch to one of the 2 last solutions since I can mostly copy the Teensy code and avoid any further bugs. I'd like to know which one you like the most. But they will get an error because the default Keyboard instance is missing. Then no predefined instance is there but you do not have to manually modify the source which most users dont know where to find. Use a template and create the Keyboard instance yourself like CKeyboard Keyboard.This saves bytes and the teensy code can be copied mostly. Use a hardcoded #define inside the keyboard.h file and select the layout manually.Use the current implementation with a weak linkage.This requires a hardware folder, we wont use this. Use boards.txt which adds a menu to the IDE.There are 4 options on how to implement different layouts:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |