Commit Graph

251 Commits (e07cf70d4d8cae6104a489a85366716ef03475b2)

Author SHA1 Message Date
Craig Disselkoen 374a3e136c Support for Kaleidoscope-Hardware-Virtual plugin
7 years ago
Craig Disselkoen 9955491971 Fix typo in keyswitch_state.h comments
7 years ago
Jesse Vincent 0467521354 astyle
7 years ago
Jesse Vincent 4914b24d85 Move key aliases to their own file and add back some aliases depended on
7 years ago
Craig Disselkoen 1ab2b45c2c Clearer (and more failsafe) implementation of deprecated methods
7 years ago
Craig Disselkoen 0b3c80b5ee Improved documentation for keyswitch states
7 years ago
Gergely Nagy 580f945270 Update the live composite keymap too at setup time
7 years ago
Gergely Nagy 53a1a2e361 Rename Layer.highest() to Layer.top()
7 years ago
Jesse Vincent a54dd140e1 Merge pull request #179 from keyboardio/f/Layer.highest
7 years ago
Gergely Nagy 9144701933 layers: Remove an unused & unimplemented function
7 years ago
Gergely Nagy 119d021e6a Layer: Add Layer.highest() to access the cached highestLayer
7 years ago
Jesse Vincent 64f20850b5
Add a workaround for [ + LSHIFT as a single key report not generating the proper
7 years ago
Jesse Vincent 51e61dc205
Add a helper function for pressing modifier keys that we receive as
7 years ago
Jesse Vincent 14ae21267b
Add a new 'wasModifierKeyActive' wrapper around a new method in KeyboardioHID
7 years ago
Gergely Nagy 33dc593151 layers: Add a comment about the momentary layer handling
7 years ago
Gergely Nagy c88062a243 layers: Code refactoring
7 years ago
Gergely Nagy b218143faf When a momentary layer is held, reactivate the layer if it turns off
7 years ago
Jesse Vincent 3199594181
astyle
7 years ago
Jesse Vincent f738c4ea1e
rename lookupUncached to lookupOnActiveLayer
7 years ago
Jesse Vincent b82b6910ea
Rename 'keymapCache' to 'activeLayers' to better describe what it is
7 years ago
Gergely Nagy 29a8b95615 layers: Implement a two-stage cache
7 years ago
Gergely Nagy b8f8c9b3d5 Smarter Layer.on / Layer.off
7 years ago
Gergely Nagy 75fb3ac14a Make cpplint happy
7 years ago
Jesse Vincent 89e59ab628
astyle fix for a trailing newline
7 years ago
Jesse Vincent c8e846247c
Rename 'keyCache' to 'keymapCache', as it's a little bit more
7 years ago
Jesse Vincent 6778581bcf
add a more descriptive comment
7 years ago
Gergely Nagy 130845f897 Add a few comments explaining why we call Layer.updateKeyCache()
7 years ago
Gergely Nagy 3748fe7669 Update the key cache on layer change and at keyboard setup
7 years ago
Jesse Vincent 491dca3a4d
lint fix
7 years ago
Gergely Nagy 96b1979ca5 Layer: Make the repeating behaviour the default and only variant
7 years ago
Gergely Nagy 84768d505c Layer_::updateKeyCache: Guard against out of bounds key coordinates
7 years ago
Gergely Nagy 8b9fdaa90f Don't init `Layer.repeat_first_press` to true yet.
7 years ago
Gergely Nagy 5ccdfcf6c7 Switch the layer repeating behaviour
7 years ago
Gergely Nagy f0c1c35e8f Significant speed improvement in key lookup code
7 years ago
Gergely Nagy e3f1172244 Changed how key caching & lookup works
7 years ago
Gergely Nagy dc40c8e226 masking: Let the release event of a masked key through
7 years ago
Gergely Nagy ca8f586b2e Document the use of key masking a bit
7 years ago
Gergely Nagy f0b3ad2b14 Implement key masking for momentary layer keys
7 years ago
Jesse Vincent e9c532509f
Switch AbsoluteMouse to use its own HID endpoint
7 years ago
Jesse Vincent 8bb9bb37ca
make consumercontrol and systemcontrol events only fire on key release
7 years ago
Jesse Vincent 7919922036
Move the hid facade out into its own namespace
7 years ago
Jesse Vincent 7e73341772
Move our hid facade into kaleidoscope::hid
7 years ago
Jesse Vincent c9734385c5
press/releaseKeyRaw -> press/releaseRawKey
7 years ago
Jesse Vincent 4ee9ca4e63
pressConsumer/releaseConsumer -> pressConsumerControl / releaseConsumerControl
7 years ago
Jesse Vincent f5aaedffd5
add an "isModifierActive" to the hid facade
7 years ago
Jesse Vincent 02695b8cea
Add a facde for KeyboardioHID's *.begin()
7 years ago
Jesse Vincent 8b187366c7
Create an abstraction on top of the KeyboardioHID interface
7 years ago
Jesse Vincent cb3a6d78c8
press_key-> pressKey
7 years ago
Jesse Vincent 396ae22a67
release_key->releaseKey
7 years ago
Jesse Vincent e29e220416
camelCasing of _matrix functions
7 years ago
Jesse Vincent 210287684f
CamelCase of handle_*_key*
7 years ago
Jesse Vincent 2582441523
CamelCase of KeyIsPressed and KeyWasPressed
7 years ago
Jesse Vincent 0f2bae7db7
keyToggledO* camelcasing
7 years ago
Jesse Vincent 3154f7c997
Add "correct" camelCase versions of the keyswitch state macros to ease transition to the new API
7 years ago
Gergely Nagy 636dfc3ba6 Rework Kaleidoscope.use to be a compile-time recursive function
8 years ago
Gergely Nagy c05573ea40 Guard the key_is_pressed/key_was_pressed arguments better
8 years ago
Jesse Vincent 8c6b8433cc
astyle pass
8 years ago
Jesse Vincent e57cfbc0db
remove a bunch of semicolons that the linter says are superfluous
8 years ago
Jesse Vincent 37d0f1cb8c
Switch HIDTables.h to #pragma once to satisfy the linter.
8 years ago
Jesse Vincent 554b43c2b5
Remove an unneeded ; caught by cpplint.py
8 years ago
Jesse Vincent d75939d456
make astyle
8 years ago
Jesse Vincent da2adaf96d
Remove "Key_" prefix from ConsumerCtl and Sysctl key defs.
8 years ago
Jesse Vincent e4ecd42d11
Traditional capitialization of PrintScreen
8 years ago
Jesse Vincent 6209290164
Looks like we _do_ have to define this yere to get Keyboard included correctly
8 years ago
Jesse Vincent 944a15aa1c
Fixed a couple places where we were using the old key names
8 years ago
Jesse Vincent 40a597c9e6
Second attempt at disambiguating key definitions
8 years ago
Jesse Vincent 2418b6a3c3
Prefix Sysctl key definitions to avoid duplicate definitions
8 years ago
Jesse Vincent a6de8467b8
Embarassing naming issue
8 years ago
Jesse Vincent 1577bd6cec
remove some backcompat key definition names
8 years ago
Jesse Vincent 4293ac533d
Lift HID Tables to Kaleidoscope to make it easier for implementations
8 years ago
Jesse Vincent af3aeaff4f
First pass at mapping full HID key tables, including back-compat for
8 years ago
Jesse Vincent b5a776c341
Add "Menu" key definintiojn
8 years ago
Jesse Vincent 66bf02cb45
Add a print screen macro.
8 years ago
Jesse Vincent aa274edd43
Revert "add header with rgb struct definition"
8 years ago
Jesse Vincent 338c5c6551 Merge pull request #131 from wez/rgb
8 years ago
Wez Furlong f2c5e3ae9d add header with rgb struct definition
8 years ago
Gergely Nagy 3ee483b2cb Move the WDT calls to the hardware plugins
8 years ago
Wez Furlong 4e5259f424 and this is needed to allow building with the Teensy USB core
8 years ago
Wez Furlong 173a422439 basic support for non-avr, non-usb boards
8 years ago
Jesse Vincent 19c63e6a8b Merge pull request #122 from algernon/f/focus-layer-hook
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
Jesse Vincent a492d3182e Add some doc for UNKNOWN_KEYSWITCH_LOCATION
8 years ago
Gergely Nagy b66c17c77d Add an optional Focus hook
8 years ago
Gergely Nagy 69bc303828 Add an UNKNOWN_KEYSWITCH_LOCATION helper
8 years ago
Gergely Nagy ff4dfad195 Support for holding Consumer/SystemControl keys
8 years ago
Jesse Vincent b2fd8d148a Merge pull request #114 from algernon/f/no-layer-restore
8 years ago
Gergely Nagy 6d641e7fc5 Make the lookup of a key pluggable
8 years ago
Gergely Nagy 71d49dee51 Don't try to load the saved layer on setup()
8 years ago
Jesse Vincent 6c190f26f1 System and Consumer keys really ought to be explicitly pressed and released using their internal support. This fixes volume keys
8 years ago
Gergely Nagy d1a14b6d32 Add a USE_PLUGINS() macro
8 years ago
Gergely Nagy 5d46660bef Workaround for the compiler optimizing things out...
8 years ago
Gergely Nagy 9a48b83290 Include Kaleidoscope.h in layers.cpp
8 years ago
Gergely Nagy f7834f05fc Merge the hooks into the Kaleidoscope object
8 years ago
Gergely Nagy 361146bf4a Merge plugin.h into Kaleidoscope.h
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 e305e51455 The Big Rename
8 years ago
Gergely Nagy 4b110b517d Speed up Layer.lookup considerably
8 years ago
Gergely Nagy eb8f9443f9 Fix the momentary layers
8 years ago