|
|
%!s(int64=7) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| config.h | %!s(int64=7) %!d(string=hai) anos | |
| keymap.c | %!s(int64=7) %!d(string=hai) anos | |
| readme.md | %!s(int64=7) %!d(string=hai) anos | |
| rules.mk | %!s(int64=7) %!d(string=hai) anos | |
This layout follows a layout very similiar to the default, but with added functionality settings.
Coding practices: Using my limited C knowledge, I essentienally used flags to get certain functionality working (this probably isn't the way QMK should be used, but I couldn't find/got lazy trying to find the functions used to toggle layers correctly). This means that I used a static unsigned 8-bit integer called "keyboard_state" to check the current flags that are on and off currently for the keyboard.
Example: keyboard_state = B00000101
keyboard_state = B00000010
This means that certain bitwise functions like CHECK_BIT(...) and SET_BIT(...) are used on "keyboard_state" to manipulate it.