Commit Graph

52 Commits (0fc79af6b25c60313e68fc145bd53dd9abe3c06d)

Author SHA1 Message Date
Jesse Vincent fa34983b5b
Merge pull request #254 from gedankenexperimenter/highest-layer
7 years ago
Michael Richters 4d186e0228 Use an unsigned integer for the iterator
7 years ago
Michael Richters c060c5ef7e Rearranged and commented Layer.on() and Layer.off()
7 years ago
Michael Richters 1f7d9ed2e8 Wrong capitalization of `DefaultLayer` variable
7 years ago
Michael Richters 34cea2623d This iterator should count down, not up
7 years ago
Michael Richters 154f0f3267 Moved definition of MAX_LAYERS next to LayerState declaration
7 years ago
Michael Richters e822c6afad In case defaultLayer isn't zero, stop counting down there
7 years ago
Michael Richters 00df66d30a Make updateHighestLayer() use layer_count if it's set
7 years ago
Michael Richters 918f25b623 Fixed reference to "CREATE_KEYMAP" (should have been "KEYMAPS")
7 years ago
Michael Richters 75a16eeb96 Brief description of Layer.on() & Layer.off()
7 years ago
Michael Richters 195d6bc413 Better compliance with coding style guide
7 years ago
Michael Richters 0fb2abf6bc Added better comments to CREATE_KEYMAP() & LayerCount declarations
7 years ago
Michael Richters 36b461a99a If using an old sketch, ignore LayerCount
7 years ago
Michael Richters 2784d0e9a9 Use weak attribute declaration for LayerCount
7 years ago
Michael Richters de39e20d78 Define keymap layers with CREATE_KEYMAP macro
7 years ago
Michael Richters e7f9edba2d Added a check to prevent reading past the end of the keymaps[] array
7 years ago
Gergely Nagy 522bd76d9e With the new layer terminology, deprecate MOMENTARY_OFFSET
7 years ago
Gergely Nagy 53a1a2e361 Rename Layer.highest() to Layer.top()
8 years ago
Gergely Nagy 33dc593151 layers: Add a comment about the momentary layer handling
8 years ago
Gergely Nagy c88062a243 layers: Code refactoring
8 years ago
Gergely Nagy b218143faf When a momentary layer is held, reactivate the layer if it turns off
8 years ago
Jesse Vincent b82b6910ea
Rename 'keymapCache' to 'activeLayers' to better describe what it is
8 years ago
Gergely Nagy 29a8b95615 layers: Implement a two-stage cache
8 years ago
Gergely Nagy b8f8c9b3d5 Smarter Layer.on / Layer.off
8 years ago
Jesse Vincent c8e846247c
Rename 'keyCache' to 'keymapCache', as it's a little bit more
8 years ago
Gergely Nagy 130845f897 Add a few comments explaining why we call Layer.updateKeyCache()
8 years ago
Gergely Nagy 3748fe7669 Update the key cache on layer change and at keyboard setup
8 years ago
Gergely Nagy 96b1979ca5 Layer: Make the repeating behaviour the default and only variant
8 years ago
Gergely Nagy 84768d505c Layer_::updateKeyCache: Guard against out of bounds key coordinates
8 years ago
Gergely Nagy 8b9fdaa90f Don't init `Layer.repeat_first_press` to true yet.
8 years ago
Gergely Nagy 5ccdfcf6c7 Switch the layer repeating behaviour
8 years ago
Gergely Nagy f0c1c35e8f Significant speed improvement in key lookup code
8 years ago
Gergely Nagy e3f1172244 Changed how key caching & lookup works
8 years ago
Gergely Nagy ca8f586b2e Document the use of key masking a bit
8 years ago
Gergely Nagy f0b3ad2b14 Implement key masking for momentary layer keys
8 years ago
Jesse Vincent 210287684f
CamelCase of handle_*_key*
8 years ago
Jesse Vincent 0f2bae7db7
keyToggledO* camelcasing
8 years ago
Jesse Vincent 8c6b8433cc
astyle pass
8 years ago
Jesse Vincent 826194a269 change "handle_key_event" to "handle_keyswitch_event" to make it clear that we're talking about something on the physical layer, rather than, say, a HID event
8 years ago
Gergely Nagy 6d641e7fc5 Make the lookup of a key pluggable
8 years ago
Gergely Nagy 9a48b83290 Include Kaleidoscope.h in layers.cpp
8 years ago
Gergely Nagy 67e906bc15 Another mergeLayers optimization
8 years ago
Gergely Nagy 0bdbe7385a Minor improvement for mergeLayers
8 years ago
Gergely Nagy 3dc51b233a Cache the keymap when changing layers
8 years ago
Gergely Nagy 4b110b517d Speed up Layer.lookup considerably
8 years ago
Jesse Vincent f3b786dade "make astyle" - no functionality changes
8 years ago
Gergely Nagy 361df26094 layers: Fix the layer toggle behaviour
8 years ago
Gergely Nagy 4b76f12ba4 Rename Key.rawKey to Key.keyCode
8 years ago
Gergely Nagy fd36e602ad Layers: Don't use hooks for the layer event handler
8 years ago
Gergely Nagy aed2fc8d98 Event hooks reworked, again
8 years ago