Gergely Nagy
24d06c7168
Initial import
...
Fixes keyboardio/Kaleidoscope#217 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Michael Richters
0cb4ac7970
Subtle change to key masking computation
...
This doesn't change behaviour at all; it's just a different way to do the computation,
which I think is much clearer. I also added an explanatory comment.
* It's now all bitwise operations, without arithemetic thrown in.
* It uses the same exact formula for finding bits on both sides of the keyboard.
* It saves 14 bytes in program memory.
7 years ago
Jesse Vincent
1513b888fb
Merge pull request #264 from keyboardio/f/builder-cleanup
...
kaleidoscope-builder cleanup
7 years ago
Gergely Nagy
a2cee84455
kaleidoscope-builder: Remove extraneous whitespace
...
Drop a bunch of empty lines, trailing spaces, and similar things.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
7a423ced8b
kaleidoscope-builder: Pull VID, SKETCH_PID and BOOTLOADER_PID from boards.txt
...
Instead of hardcoding defaults for `VID`, `SKETCH_PID`, and `BOOTLOADER_PID`,
use `arduino-builder -dump-prefs` to pull these out of `boards.txt`.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
4b6ca2fab3
Fix stickied OneShot clearing
...
When clearing a sticky, also cancel the OneShot state, and clear the pressed
bits too.
Thanks to @glasser for experimenting and coming up with the full fix.
Fixes #17 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
62f619a5c4
Cancel stickies too
...
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
14d916ed3e
Merge pull request #18 from gedankenexperimenter/bug/backtick
...
Backtick is ASCII 0x60, not 0x5F
7 years ago
Michael Richters
631d028c5f
Backtick is ASCII 0x60, not 0x5F
...
fixes #17
7 years ago
Michael Richters
4d186e0228
Use an unsigned integer for the iterator
...
Also made the comment above more clear
7 years ago
Jesse Vincent
eb9164ddaa
refactor device reset code
7 years ago
Jesse Vincent
5d9420c4f5
VERY hacky WIP tool for finding the correct port for a device on linux by VID/PID pair
7 years ago
Jesse Vincent
5b808f1eb8
This may or may not work. Trying to simplify the platform detection logic
7 years ago
Jesse Vincent
040287a203
Now that the config file is elsewhere and simpler, this outdated check can probably go.
7 years ago
Jesse Vincent
693589b1ef
Slightly simplify a conditional.
...
@algernon do you see any gotcha with this change?
7 years ago
Jesse Vincent
110b2795f0
move the verbose stuff out of the config file
7 years ago
Jesse Vincent
3556727657
Move two functions from the kaleidoscope-builder.conf to the builder
7 years ago
Michael Richters
86c2f44dff
Merge pull request #17 from gedankenlab/code-cleanup
...
Correct array initialization
7 years ago
Michael Richters
421556f7cc
Correct array initialization
7 years ago
Michael Richters
40d2e5bc35
Re-wrote README
7 years ago
Michael Richters
9205c67da3
Merge pull request #16 from gedankenlab/code-cleanup
...
Code cleanup
7 years ago
Michael Richters
cd0073f0ae
Prettier formatting of keymap; astyle off for that section
7 years ago
Michael Richters
41437c789a
Spurious comments removed
7 years ago
Michael Richters
e842a7cef5
Removed trailing underscore from public member variable names
7 years ago
Michael Richters
50a074bafc
Make internal functions private
7 years ago
Michael Richters
e5813aba55
Removed unnecessary comments
7 years ago
Michael Richters
f2894fa455
Removed unused & commented init() function
7 years ago
Michael Richters
d33deda114
astyle
7 years ago
Michael Richters
c112cc615d
Flush non-qukeys from the head of the queue
7 years ago
Michael Richters
abea4c281c
Simplify if(keyToggledOn)
7 years ago
Michael Richters
65163be9c7
Store qukey state as a bitfield instead of a struct member ( #15 )
...
* Defined bitfield structure for storing qukey state
* Implement storage of qukey states in bitfield
7 years ago
Gergely Nagy
b0b1283975
make astyle
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Michael Richters
632e876084
Mask keys when they're in the queue; unmask when flushed
7 years ago
Michael Richters
ba67fe2ee6
Fixed addr::unmask()
...
It was calling `maskKey()` instead of `unMaskKey()`
7 years ago
Michael Richters
0e951d8b46
Changed parameter name
...
In `flushKey()`, I changed the ambiguous parameter name `state` to the more descriptive `qukey_state`.
7 years ago
Michael Richters
f2dc52ba0b
Added mask() & unmask() functions
7 years ago
Michael Richters
2db772aeca
Better pos-scan flushing of the key queue
7 years ago
Michael Richters
6102388813
Call handleKeyswitchEvent() again after restoring the current report
...
After restoring the current report, if we don't add the keycode for the current key back
in (by calling `handleKeyswitchEvent()` with the "held" state flags if the flushed key is
still held), we'll accidentally leave that keycode out of the next report.
fixes #13
7 years ago
Michael Richters
99988e4c76
Call toggle() only when the macro key toggles on ( fixes #11 )
7 years ago
Michael Richters
17d61518c2
Fix example toggle-qukeys macro
7 years ago
Michael Richters
8fcff0109f
Small improvement to QUKEYS() macro
...
Using braces really makes it much clearer. I stole the idea from @algernon.
7 years ago
Michael Richters
6e57b9868f
Added a macro to toggle Qukeys in the example
...
- also updated the keymaps definition
7 years ago
Michael Richters
6ca34d7f99
Added a function to toggle Qukeys on/off
7 years ago
Michael Richters
f603e6d8d3
astyle
7 years ago
Michael Richters
d12a4870fe
Added `setTimeout()` function to set the time limit in sketch
7 years ago
Michael Richters
cb16b32215
Fixed `QUKEYS()` macro for defining qukeys in sketch
7 years ago
Michael Richters
c060c5ef7e
Rearranged and commented Layer.on() and Layer.off()
...
The boolean wasOn was unnecessary, and there was no need to call
bitSet() (or bitClear(), in the case of Layer.off()) if the test
passed. Mostly, I just added a few explanatory comments.
(Aslo reversed the sense of the on/off test in Layer.on() and .off())
@algernon likes it better this way, and I agree.
7 years ago
Jesse Vincent
88f8308e49
Merge pull request #13 from SjB/HorizontalMouseScrolling
...
Horizontal Mouse Scrolling Support in Kaleidoscope-Mousekeys
7 years ago
Jesse Vincent
3ecbf05018
Merge pull request #12 from keyboardio/h/stuck-mousekey-fix
...
Fix mouse keys getting occasionally stuck
7 years ago
Jesse Vincent
0870a2d560
Merge pull request #252 from keyboardio/h/mousekeys/separate-report-abstraction
...
hid: Wrap Mouse.releaseAll() and Mouse.sendReport()
7 years ago