Skip to content

Commit

Permalink
WIP – update tests to include layer
Browse files Browse the repository at this point in the history
  • Loading branch information
hupfdule committed Nov 15, 2024
1 parent 9ea4b46 commit a24672e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/plugins/LongPress/autoshift/autoshift.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ void setup() {
// ATTENTION! The order matters here! The first matching entry wins.

// overrides the long-press for a logical Key (in the next line)
kaleidoscope::plugin::LongPressKey(KeyAddr(1, 2), Key_Z),
kaleidoscope::plugin::LongPressKey(kaleidoscope::plugin::longpress::ALL_LAYERS, KeyAddr(1, 2), Key_Z),
// overrides the auto-shift functionality
kaleidoscope::plugin::LongPressKey(Key_B, Key_Y),
kaleidoscope::plugin::LongPressKey(kaleidoscope::plugin::longpress::ALL_LAYERS, Key_B, Key_Y),
)
}

Expand Down
12 changes: 8 additions & 4 deletions tests/plugins/LongPress/basic/basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,17 @@ void setup() {

LONGPRESS(
// Key at 1,0 should produce a Z on long press on all layers
kaleidoscope::plugin::LongPressKey( KeyAddr(1, 0), Key_Z),
kaleidoscope::plugin::LongPressKey(kaleidoscope::plugin::longpress::ALL_LAYERS,
KeyAddr(1, 0), Key_Z),
// Keys generating a B should produce a Y on long press on all layers
kaleidoscope::plugin::LongPressKey( Key_B, Key_Y),
kaleidoscope::plugin::LongPressKey(kaleidoscope::plugin::longpress::ALL_LAYERS,
Key_B, Key_Y),
// Key at 1,2 should produce a X on long press on the first layer
kaleidoscope::plugin::LongPressKey(0, KeyAddr(1, 2), Key_X),
kaleidoscope::plugin::LongPressKey(0,
KeyAddr(1, 2), Key_X),
// Keys generating a D should produce a W on long press on the second layer
kaleidoscope::plugin::LongPressKey(1, Key_D, Key_W),
kaleidoscope::plugin::LongPressKey(1,
Key_D, Key_W),
)
}

Expand Down

0 comments on commit a24672e

Please sign in to comment.