Gergely Nagy
fb524cc0dd
Merge pull request #5 from jamesnvc/layerwise-focus-hooks
...
Add focus hook to accept theme updates for single layers
7 years ago
Gergely Nagy
42e60891d4
Merge pull request #4 from jamesnvc/layerwise-hooks
...
Add theme focus handler for layerwise themes
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
James N. V. Cash
ed3b211561
Formatting
7 years ago
James N. V. Cash
456e1cb82b
Update function call to keep in sync with other PR
7 years ago
James N. V. Cash
1e4f37c70d
Try to name hook function better
7 years ago
James N. V. Cash
e76fc6cfa4
Add focus hook to accept theme updates for single layers
...
Requires https://github.com/keyboardio/Kaleidoscope-LED-Palette-Theme/pull/4
7 years ago
James N. V. Cash
6a5a7166c1
Add theme focus handler for layerwise themes
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.
...
That way, we can look for two presses a bit more easily with only one
variable.
7 years ago
Michael Richters
50ac31d0f5
Added a "sketch-trailer.h" header file
...
This file is meant to be included in sketch files in order to make
data available to Kaleidoscope functions. In particular, the size of
the keymaps[] array (i.e. the number of defined layers), which is
needed in order to prevent reading uninitialized memory past the end
of that array due to Key_KeymapNext_Momentary.
7 years ago
Jesse Vincent
8b562fe64b
Switch to a counter for 'cycles since last state change'
...
This uses a bunch more ram, but it's much, much more flexible and the
test mode is optional in user firmware.
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
Michael Richters
7ddc0249bb
Added `LayerCount` variable to the example sketches
...
This took some trial and error to figure out, but once I determined
that the example sketches were being built, I made this change to keep
the build working. Hopefully this will satisfy Travis-CI.
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
...
time)
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
...
This relys on the 'LayerCount' variable being correct and defined in
the firmware sketch file (along with 'keymaps')
7 years ago
Simon Lydell
4d6e1a770d
Make the example more complete
7 years ago
SjB
f57aab5f71
Support all 10bit HID Consumer code.
...
By moving the IS_CONSUMER flag to B00001000 instead of
B00000010 (swap with IS_INTERNAL) we can detect the if the key is a
consumer key and strip out the flags and use the full 10bit to send to
the hid report. This enable us to use all the Consumer_* keys
7 years ago
Jesse Vincent
3f1c80366a
Merge pull request #224 from algernon/f/getKeyboardLEDs
...
Add kaleidoscope::hid::getKeyboardLEDs()
7 years ago
Piers Cawley
8f625b97ff
Eliminate unnecessary `sendKeyboardReport`
...
It seems that if we inject the release of the mapped modifier key before injecting the press of the alternate key, we avoid the need to call `hid::sendKeyboardReport`, which in turn fixes #7 . Which is nice.
Closes #7
7 years ago
ejinks4
263f9a59c3
Update key_events.cpp (IS_INTERNAL Handling)
...
Reordered if chain in handleSyntheticKeyswitchEvent to fix a bug preventing some Consumer and System Control HID functions from being sent due to bit overload/collision with the IS_INTERNAL flag.
7 years ago
Jesse Vincent
e9e709fb74
Merge pull request #14 from Javaru/master
...
Defined LED constants for thumb keys and fn keys have wrong values.
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
Gergely Nagy
e2e9ea063b
Merge pull request #14 from milkypostman/patch-1
...
stepLength -> step_length in README.md
7 years ago
Donald Curtis
34f9848b8a
stepLength -> step_length in README.md
...
There is a typo in the README.md file.
7 years ago
Gergely Nagy
b1fc8d7cb1
Merge pull request #5 from milkypostman/timerfix
...
Fix update check was always checking.
7 years ago
Donald Curtis
35c8352ef0
Fix update check was always checking.
...
LED update should happen when the timer is past the end_time_, not it is
less than the end_time_.
7 years ago
Jesse Vincent
89dea00e10
Merge pull request #3 from glasser/glasser/refresh
...
Turn off light when done
7 years ago
Jesse Vincent
45a71751e8
Merge pull request #12 from keyboardio/f/numlock-sync
...
Sync the NUMPAD layer state with the host
7 years ago
Gergely Nagy
5a8cae7c21
Merge pull request #21 from jamesnvc/allow-modifiers
...
Don't cancel one-shot if other key pressed is a modifier
7 years ago
James N. V. Cash
c44d80feef
Call saveAsPrevious even if mod, to avoid triggering sticky key
7 years ago
James N. V. Cash
71dce27a48
Don't cancel one-shot if other key pressed is a modifier
7 years ago
Gergely Nagy
2bf181b0f5
Merge pull request #10 from jamesnvc/patch-1
...
Fix plugin setup documentation
7 years ago
James Cash
8449dbe282
Fix plugin setup documentation
...
Example in README shows wrong method signature to override
7 years ago
David Glasser
4342080621
Turn off light when done
...
Fixes #2 .
7 years ago
Bart Nagel
a3a5cfbc6a
Fix code typo in blazing trail decay
...
A number was given as 0xf0 instead of 0xff, leading to a noticeable
sudden snap from blood-orange to orange.
7 years ago
Jesse Vincent
67aa56022d
Merge pull request #226 from gedankenexperimenter/bug/key-defs
...
Fixed a typo in key def aliases (s/Key_LGuy/Key_LGui/)
7 years ago
Michael Richters
b607c667cb
Fixed a typo in key def aliases (s/Key_LGuy/Key_LGui/)
7 years ago
Gergely Nagy
604e64fb91
Merge pull request #6 from jamesnvc/addressing-issues
...
Fix very bad bug in layerwise implementation
7 years ago
James N. V. Cash
c298d22827
Only need keysPerLayer in the updating branch of the conditional
7 years ago