diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-04-04 19:42:10 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-04-04 19:42:10 -0400 |
commit | 20d69e2ad4d370c929774d028b1248416117080d (patch) | |
tree | f16e8ad607217f15d5a95861faf91228437e3c91 | |
parent | 46179fbb7b3adf9c3ce8469718b6c8b8b337506d (diff) | |
download | qmk_firmware-20d69e2ad4d370c929774d028b1248416117080d.tar.gz qmk_firmware-20d69e2ad4d370c929774d028b1248416117080d.zip |
clean-up keycode stuff
-rw-r--r-- | Home.md | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -11,28 +11,10 @@ Before you are able to compile, you'll need to install an environment for AVR de # Configuring QMK Firmware -The QMK Firmware can be configured via the `keymaps` array data. - -For simply generating a [basic keycode](https://github.com/qmk/qmk_firmware/wiki/Keycodes), you add it as an element of your `keymaps` array data. - -For more complicated actions, you add the corresponding **action code** directly as an element of your `keymaps` array data. - -The **action code** is a 16 bit data and organized carefully to represent common operations with the combination of C macros. It is sometimes called quantum keycode in the QMK source comment. - -For example, the keycode `KC_8` as an element of your `keymaps` array data is for generating keystroke of "8". The action code `SHFT(KC_8)` an element of your `keymaps` array data is for generating key stroke of "*" which is "8" key shifted. - -> In tmk, only up to 32 **action codes** are usable in `fn_actions` array data which is accessed via 32 special keycodes (`KC_FN0` to `KC_FN31`) in `keymaps` array data. +The QMK Firmware can be configured via the `keymaps` array data. For simply generating a [basic keycode](Keycodes), you add it as an element of your `keymaps` array data. For more complicated actions, there are more advanced keycodes that are organized carefully to represent common operations, some of which can be found on the [Key Functions](Key-Functions) page. For more details of the `keymaps` array, see [Keymap Overview](Keymap) page. -## C macros for action code - -Basic "C macros" for layer switching are documented in the [Key Functions](Key-Functions) page. - -> The keyboard [macros](Macros) are completely different concept from the C macros for action code. Please don't get confused. - -There are several new standardized support for common operations with new action codes as follows. - ## Space Cadet Shift: The future, built in Steve Losh [described](http://stevelosh.com/blog/2012/10/a-modern-space-cadet/) the Space Cadet Shift quite well. Essentially, you hit the left Shift on its own, and you get an opening parenthesis; hit the right Shift on its own, and you get the closing one. When hit with other keys, the Shift key keeps working as it always does. Yes, it's as cool as it sounds. Head on over to the [Space Cadet Shift](Space-Cadet-Shift) page to read about it. |