Commit Graph

907 Commits (8bceac8e8e9464c2887b652aac2347e1d6dca004)

Author SHA1 Message Date
Gergely Nagy 948b3d40b7 Override onSetup when using a compatibility layer
7 years ago
Gergely Nagy b756217750 Override onSetup when using a compatibility layer
7 years ago
Gergely Nagy fac99ec57b Fix the error reporting on old-style API
7 years ago
Gergely Nagy 7603cc813e Use __builtin_popcountl() in pressedKeyswitchCount()
7 years ago
Gergely Nagy 65eb079a3a Fix a typo in key_defs_consumerctl.h
7 years ago
Gergely Nagy 604ebc448d Make the NumLock breathe's hue configurable too
7 years ago
Gergely Nagy 4b04d506c4 Make the numpad highlight color configurable
7 years ago
Gergely Nagy 9592ef1ae8 Make the hue configurable
7 years ago
Jesse Vincent c18fe0584a
Merge pull request #338 from keyboardio/f/deprecated/remove-by-may
7 years ago
Gergely Nagy 4fb8e51dde Remove some long-deprecated methods and symbols
7 years ago
Gergely Nagy d9da1d717a Add an UPGRADING.md document, and a helpful error message
7 years ago
Gergely Nagy 417b7de5c1 Migrate to KeyboardHardware.isKeyswitchPressed() & .pressedKeyswitchCount()
7 years ago
Gergely Nagy 5a6e0fa12a Complete redesign of the plugin
7 years ago
Gergely Nagy f469015346 Better keyswitch state APIs
7 years ago
Gergely Nagy 25e940a611 Remove the getKeyswitchStateAtPosition wrapper
7 years ago
Gergely Nagy 33e64d5298 Document hid::getKeyswitchStateAtPosition
7 years ago
Jack Zhou c45e7d1c1d
Fix diagonal speed limit and remainder calculation
7 years ago
Gergely Nagy 509adfcc41 Convert the RxCy macros to constsexprs
7 years ago
Gergely Nagy 01379a72fc Move KEY_INDEX to the hardware plugin
7 years ago
Gergely Nagy 5388739131 Implement KEY_INDEX and add getKeyswitchStateAtPosition to the HID facade
7 years ago
Gergely Nagy 0b696af8f6 Implement getKeyswitchStateAtPosition, and transition RxCy to KEY_INDEX
7 years ago
Gergely Nagy 9f25b0990e Make the V1 plugin API ifdefs broader
7 years ago
Gergely Nagy f2316c5114 Wrap KeyboardHardware.detachFromHost and .attachToHost
7 years ago
Gergely Nagy fe9c6f8d92 Implement a way to detach from / attach to the host
7 years ago
Gergely Nagy 6190f55c57 Dim the numpad color down from 255 to 160.
7 years ago
Jack Zhou 77acd347e8
Address possible overflow, adhere to style
7 years ago
Jack Zhou 04112de297
Approximate sqrt(2)/2 with ints to avoid floats
7 years ago
Jack Zhou 3805b53cad
Clean up implementation
7 years ago
Jack Zhou 69a8288d5d
Apply correct diagonal movement speeds
7 years ago
Gergely Nagy da41514f1c Remove WakeupKeyboard
7 years ago
Gergely Nagy 8a77cdaaff astyle
7 years ago
Gergely Nagy 95789d3777 Add getters for brightness and update_delay
7 years ago
Gergely Nagy 1ab6c016cd Use Focus.readColor in the focusHook
7 years ago
Aaron Christianson 7ad05d2d93 fixed a show-stopping spelling error. updat_delay -> update_delay
7 years ago
Aaron Christianson a1fadd9f75 added changes suggested in the PR discussion.
7 years ago
Aaron Christianson e6f7aef63b added methods to control delay time and updated the README
7 years ago
Gergely Nagy 5006da2a28 Fix RESTRICT_ARGS_COUNT with gcc 8.1+
7 years ago
Gergely Nagy 07efbce40d
Merge pull request #321 from keyboardio/f/millisAtCycleStart
7 years ago
Gergely Nagy e43d2cb391 Introduce Kaleidoscope.millisAtCycleStart()
7 years ago
Max Görner 2889f1c301 Remove `inline' for improved readability
7 years ago
Max Görner b2254e1c7f Slightly improve function signatures
7 years ago
Max Görner 066d00d117 Add const and constexpr specifiers to Key union
7 years ago
Gergely Nagy 7b49a2c011 deprecations: Make some of them less scary
7 years ago
Gergely Nagy dbb4152cb2 Updated to use the new plugin API
7 years ago
Gergely Nagy ecc20bde9d Move deprecation messages to a separate header
7 years ago
Gergely Nagy 8f07f038ca Bump the API version
7 years ago
Gergely Nagy ee5cc576a0 Updated to use the new plugin APIs
7 years ago
Gergely Nagy e9b9d41626 Updated to use the new plugin APIs
7 years ago
Gergely Nagy e249fd2de6 handleKeyswitchEvent: Fix a thinko that broke old-style plugins
7 years ago
Gergely Nagy 19cffca5c4 Updated to use the new plugin APIs
7 years ago
Gergely Nagy 0bd1711371 Updated to use the new plugin APIs
7 years ago
Gergely Nagy 4b061994fc Updated to use the new plugin APIs
7 years ago
Gergely Nagy 115e439a4c Updated to use the new plugin APIs
7 years ago
Gergely Nagy 0f32840a3a Updated to use the new plugin APIs
7 years ago
Gergely Nagy 9f8e87c2d1 Updated to use the new plugin APIs
7 years ago
Gergely Nagy be659b4043 Updated to use the new plugin APIs
7 years ago
Gergely Nagy 94b7d13990 Updated to use the new plugin APIs
7 years ago
noseglasses 8130dfdf1d Major redesign of the plugin and hooking interface
7 years ago
Gergely Nagy 435018eb6a Updated to use the new plugin APIs
7 years ago
Jesse Vincent b565dab644 pass by value to save some flash
7 years ago
Jesse Vincent 9b44d02e6e Typo fix
7 years ago
Jesse Vincent eea0c8b47e astyle
7 years ago
Jesse Vincent 3dd86e34dd Refactoring to save 44 more PROGMEM and 12 more RAM
7 years ago
Jesse Vincent b144f626e4 refactor to reuse some code and be a bit smarter about data.
7 years ago
Gergely Nagy 2130521b6d
Merge pull request #16 from cyrossignol/fix-warp-dragging
7 years ago
Gergely Nagy 36333263ef Improved step timeout calculation
7 years ago
Gergely Nagy 73d9997b54 Use timers instead of ticks to time when to update the effects
7 years ago
Ryan Anderson b18465033e Reset the acceleration timer each time it expires.
7 years ago
Cy Rossignol a407aa29b0 Add an optional 9-sector-grid warp size
7 years ago
Gergely Nagy 198e332e05 breath_compute: Use default arguments instead of three methods
7 years ago
Gergely Nagy f321388ed9
Merge pull request #19 from advisoray/master
7 years ago
Gergely Nagy f56de510ae
Merge pull request #16 from CapeLeidokos/ng_pr_macro_arguments_check
7 years ago
Michael Richters cef1926465 Fixed brightness jump on overflow
7 years ago
Michael Richters bd4acf3984 Better explanation of the in-bounds code
7 years ago
Michael Richters 1f2d32ed79 Fix for all out of bounds LED addressing
7 years ago
Jesse Vincent 0cd6634f95
Merge pull request #3 from gedankenexperimenter/slowdown
7 years ago
Michael Richters b908d2ec69 Change the upper bound to match the lower bound
7 years ago
Michael Richters 3be7859783 Slow down the chase to reflect the recent optimizations
7 years ago
Cy Rossignol b370681111 Fix warping while dragging the mouse
7 years ago
Michael Richters 9964a3ce70 Fixed syncTimer overflow condition
7 years ago
Toon Claes e01c7106f6 Add Rainbow stalker effect
7 years ago
Gergely Nagy 8d4d2eec4d handleKeyswitchEvent: Document the behaviour for idle keys
7 years ago
Gergely Nagy 7213f7577a actOnHalfRow: Do not handle events on fully idle positions
7 years ago
Gergely Nagy e6f7d2c74b Further actOnMatrixScan optimizations
7 years ago
Marty Gentillon effa6eba15 Numpad now properly restores the former numlock state on deactivation.
7 years ago
Gergely Nagy e17869e1a1 actOnMatrixScan: Optimize the idle case
7 years ago
Ben Gemperline dcddb26fa0 Add ability to change hue / saturation in breath_compute
7 years ago
Ben Gemperline e59eef6246 Updates to BootGreeting to allow better user customization
7 years ago
Jesse Vincent 842294af78
Merge pull request #275 from CapeLeidokos/ng_pr_macro_helpers
7 years ago
Gergely Nagy 78710d0247
Merge pull request #3 from MartyGentillon/master
7 years ago
Gergely Nagy 3e7b4cb737
Merge pull request #2 from edanaher/fix-numlock-off
7 years ago
Gergely Nagy 04d5790aa7
Merge pull request #286 from keyboardio/f/hid-adaptor/hardware-tied
7 years ago
Maxime de Roucy deb92d85dd Don't enable LED on Key_NoKey
7 years ago
Marty Gentillon d5369288fb NumPad now restores the former num lock state on deactivation.
7 years ago
Evan Danaher 1017cfd600 Send numlock keypress when disabling the numpad layer.
7 years ago
Michael Richters c9727199d4 Corrected macro for HID_CONSUMER_AC_DOWNLOAD
7 years ago
Gergely Nagy ea7454ddc2 Correct a typo
7 years ago
noseglasses 869ba74edf
Update macro_helpers.h
7 years ago
tazlor 4f95cf8415
Reset bad keys before each test.
7 years ago
Iliana Weller 088774089a
Enable focus command `led.mode p`
7 years ago
Michael Richters 8818ad51b7 Fixed scan order bug
7 years ago
Gergely Nagy 93880767fb Drop the HIDAdaptor includes
7 years ago
Gergely Nagy ac38d7241d Pull in the KeyboardioHID HIDAdaptor library
7 years ago
Jesse Vincent 086b16f4df
Merge pull request #270 from keyboardio/f/api-version
7 years ago
Nate Soares 4572cccd67 effect hook only triggers on known Key_LEDEffect* keys
7 years ago
Nate Soares 795ef6c1f8 compare the keyCode instead of the whole key struct
7 years ago
Nate Soares e2d8866392 added Key_LEDEffectPrevious
7 years ago
Nate Soares e3f112affc fixed bug in wrap-around
7 years ago
Nate Soares 4d82db1f97 better wrap-around
7 years ago
Nate Soares 8ea55ff76f added prev_mode
7 years ago
Gergely Nagy 6867ff3ba8 Make the HID facade implementation external
7 years ago
Gergely Nagy a5eb6320c8 Kaleidoscope::setup: Use the HID facade
7 years ago
Gergely Nagy 78cc8064c5 api-version: A better error message
7 years ago
Florian Fleissner c811d3be70 Fixed style errors
7 years ago
Florian Fleissner e9759ee64a Added source file and line to static assert reports.
7 years ago
Florian Fleissner 18b234cf7f Added missing varargs to KEYMAP(...)
7 years ago
Florian Fleissner ae93c18728 Fixed style related errors
7 years ago
Florian Fleissner c70dbd34da Added macro arguments check to avoid problems with KEYMAP_STACKED and KEYMAP
7 years ago
Florian Fleissner 3119b6b228 Added src/macro_helpers.h that supports application of preprocessor-macros
7 years ago
Michael Richters 83a5518bed Use constants to better illustrate bitfield usage
7 years ago
Florian Fleissner ce122bb282 Added missing closring curly braces to Key macros
7 years ago
Gergely Nagy 5a1b453b36 Introduce KALEIDOSCOPE_API_VERSION
7 years ago
Gergely Nagy c56c7791ba Do not provide toggleLEDs
7 years ago
Gergely Nagy 5eca9b9a1f Forgot to rename a file, oops.
7 years ago
Gergely Nagy c71b96c233 make astyle
7 years ago
Gergely Nagy 810a69cf33 Rename the library to HostPowerManagement
7 years ago
Gergely Nagy d602988b95 Use LEDControl.paused instead of an implicit LEDOff
7 years ago
Jesse Vincent fa34983b5b
Merge pull request #254 from gedankenexperimenter/highest-layer
7 years ago
Jesse Vincent 7a55a9395f
Merge pull request #205 from cdisselkoen/inject-physical
7 years ago
matt venn 02a2a6c54a fixed missing newline
7 years ago
Gergely Nagy 9dc2daddc5 make astyle
7 years ago
Gergely Nagy 539aa85d6a Add a special `WakeupKeyboard`, to be able to wake the host up
7 years ago
Gergely Nagy 2871b06974 Add a way to pause LED modes
7 years ago
Gergely Nagy 1ab0ae3347 make astlye
7 years ago
Gergely Nagy 9a32ae9879 Renamed a few private members to follow the style guide
7 years ago
Gergely Nagy 24d06c7168 Initial import
7 years ago
Michael Richters 0cb4ac7970 Subtle change to key masking computation
7 years ago
Michael Richters 631d028c5f Backtick is ASCII 0x60, not 0x5F
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
Jesse Vincent 88f8308e49
Merge pull request #13 from SjB/HorizontalMouseScrolling
7 years ago
Jesse Vincent 0870a2d560
Merge pull request #252 from keyboardio/h/mousekeys/separate-report-abstraction
7 years ago
Jesse Vincent 593d0884f5
Merge pull request #255 from gedankenexperimenter/qukeys
7 years ago
Michael Richters 904bdd37bf Removed spurious line deletion
7 years ago
SjB 3005d9534e Horizontal Mouse Scrolling Support in Kaleidoscope-Mousekeys
7 years ago
SjB df3d791165 Horizontal Mouse Scrolling Support in Kaleidoscope.
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 f90891dc1c Added function to return the active layer of a given key
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
Gergely Nagy 2bc62cb8b9 hid: Wrap Mouse.releaseAll() and Mouse.sendReport()
7 years ago
Michael Richters 75a16eeb96 Brief description of Layer.on() & Layer.off()
7 years ago
Jesse Vincent 0a41083881
Merge pull request #244 from gedankenexperimenter/bug/layer-next
7 years ago
Jesse Vincent 8e03280e36
Merge pull request #251 from keyboardio/h/consumercontrol/repeat-fix
7 years ago
Michael Richters 195d6bc413 Better compliance with coding style guide
7 years ago
Jesse Vincent 4bcbab2c09
Merge pull request #247 from gedankenexperimenter/bug/shift-layer-release
7 years ago
Gergely Nagy df72fb710f Fix mouse keys getting occasionally stuck
7 years ago
Gergely Nagy be49df2806 Fix ConsumerControl repeating
7 years ago
Michael Richters dd1376978e Another comment update
7 years ago
Michael Richters 3dfb8caa11 Updated comment to match code
7 years ago
Michael Richters f6d627602e Only call updateLiveCompositeKeymap() on key press; not release
7 years ago
SjB 9843c57f13 fix: coding style with make astyle
7 years ago
SjB 49dfa476ed CONSUMER(key) macro to his the magic constant
7 years ago
SjB 8ab23033e7 Replace Key_16bit macro with a more discribtive macro CONSUMER_KEY
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
James N. V. Cash 5d53d77c6f If layer is greater than max_layer, always fall back to EEPROM
7 years ago
SjB d7dea8d89a two typos using lower case k for Key casting
7 years ago
SjB 4e33428786 using Macro to convert HID_CONSUMER_CODE to Key struct
7 years ago
SjB fa13851193 Merge branch 'master' into 10bitConsumerCodeSupport
7 years ago
Jesse Vincent c0407b2775
Merge pull request #238 from ejinks4/patch-1
7 years ago
Jesse Vincent 043ba2072b Tweak our chatter timings to hopefully have fewer false positives
7 years ago
Jesse Vincent c0a2b43c23 Slightly clean up our startup mode to be faster and more likely to eat
7 years ago
Jesse Vincent 952198a98a It appears that when the BIOS isn't reporting the keyboard LED state back to the keyboard, the old code resulted in sending far too many key reports. (Specifically, out of controll key repeat on OSX)
7 years ago
Jesse Vincent a860afa765 astyle. no function changes
7 years ago
Jesse Vincent b25e7e87e2 Avoid a potential overflow bug
7 years ago
Jesse Vincent d09ac4043d Look for chatter across 15 scans, rather than just two.
7 years ago
Jesse Vincent 5f9be8f8f0 Clear the keyscan buffer starting to look for bounce events.
7 years ago
Jesse Vincent 54cbf18e1c Only treat "key pressed down" events as issues for the debounce counter.
7 years ago
Michael Richters 50ac31d0f5 Added a "sketch-trailer.h" header file
7 years ago
Jesse Vincent 8b562fe64b Switch to a counter for 'cycles since last state change'
7 years ago
Jesse Vincent 1fb97c958b That renaming was slightly over-aggressive
7 years ago
Jesse Vincent 3de82eb6a4 Renaming
7 years ago
Jesse Vincent 1333f30252 Switch to not trying to use 'Numlock' as a toggle.
7 years ago
Jesse Vincent 75dfcf8ccb First pass at a new chatter detection mode
7 years ago
Jesse Vincent c126e1b27b astyle
7 years ago
Jesse Vincent 2e91dd4a82 Disable hardware debouncing in testmode
7 years ago
Jesse Vincent dbb1b95d5c Add a public API for a device-specific feature (configurable debounce
7 years ago
Jesse Vincent b3ea050595 Reorder definitions and add a clarifying comment
7 years ago
Michael Richters 9db5036a5c Make `LayerCount` available in layers.cpp
7 years ago
Michael Richters e7f9edba2d Added a check to prevent reading past the end of the keymaps[] array
7 years ago
SjB f57aab5f71 Support all 10bit HID Consumer code.
7 years ago
Jesse Vincent 3f1c80366a
Merge pull request #224 from algernon/f/getKeyboardLEDs
7 years ago
ejinks4 263f9a59c3
Update key_events.cpp (IS_INTERNAL Handling)
7 years ago
Javaru 802dcb1e35 Fix for issue that defined LED constants for thumb keys and fn keys have wrong values. Renamed some LED thumb variables for consistency (none are used elsewhere at this time).
7 years ago