diff --git a/examples/SpaceCadet/SpaceCadet.ino b/examples/SpaceCadet/SpaceCadet.ino index 4dd5c4a4..113eaadc 100644 --- a/examples/SpaceCadet/SpaceCadet.ino +++ b/examples/SpaceCadet/SpaceCadet.ino @@ -40,7 +40,22 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { }; void setup() { - Kaleidoscope.use(&SpaceCadetShift); + //Tell Kaleidoscope to use SpaceCadet + Kaleidoscope.use(&SpaceCadet; + + //Set the SpaceCadet map + //Setting is {KeyThatWasPressed, AlternativeKeyToSend, TimeoutInMS} + static kaleidoscope::ModifierKeyMap spacecadetmap[] = { + {Key_LeftShift, Key_LeftParen, 250} + ,{Key_RightShift, Key_RightParen, 250} + ,{Key_LeftGui,Key_LeftCurlyBracket,250} + ,{Key_RightAlt,Key_RightCurlyBracket,250} + ,{Key_LeftAlt,Key_RightCurlyBracket,250} + ,{Key_LeftControl,Key_LeftBracket,250} + ,{Key_RightControl,Key_RightBracket,250} + }; + //Set the map and the number of entries + SpaceCadet.setMap(spacecadetmap, sizeof(spacecadetmap)/sizeof(spacecadetmap[0])); Kaleidoscope.setup(); }