Skip to content

Commit

Permalink
Little progress
Browse files Browse the repository at this point in the history
Signed-off-by: Evy Bongers <[email protected]>
  • Loading branch information
EvyBongers committed Mar 24, 2024
1 parent 934ee1e commit 1a3a582
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,12 @@ bool Qukeys::isQukey(KeyAddr k) {

// Then, we check to see if this is a Qukey using the new API (defined in the keymap)
if (key >= ranges::QK_FIRST && key <= ranges::QK_LAST) {
// TODO(EvyBongers)
return false; // for now
key.setRaw(key.getRaw() - ranges::QK_FIRST);

queue_head_.primary_key = key;
// TODO(EvyBongers): retrieve the stored qkey value
//queue_head_.alternate_key = qukey.alternate_key;
return true;
}

// Last, we check the qukeys array for a match
Expand Down
7 changes: 3 additions & 4 deletions plugins/Kaleidoscope-Qukeys/src/kaleidoscope/plugin/Qukeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ constexpr Key LayerTapKey(uint8_t layer, Key tap_key) {
(layer << 8) + tap_key.getKeyCode());
}

constexpr Key Qkey(Key primary_key, Key secondary_key) {
return Key(kaleidoscope::ranges::QK_FIRST +
// TODO(EvyBongers): this is going to need review
primary_key.getKeyCode() + secondary_key.getKeyCode());
constexpr Key Qkey(Key tap_key, Key qkey) {
// TODO(EvyBongers): store the qkey value somewhere, somehow
return Key(kaleidoscope::ranges::QK_FIRST + tap_key.getRaw());
}

// Data structure for an individual qukey
Expand Down

0 comments on commit 1a3a582

Please sign in to comment.