Switch from the NumLock library to the NumPad library.
This new plugin lets us use a more standard layer lock to get into the numpad mode and doesn't depend on the system numlock feature quite as much
This commit is contained in:
parent
8f5851138c
commit
a457f37155
@ -25,8 +25,8 @@
|
||||
// Support for controlling the keyboard's LEDs
|
||||
#include "Kaleidoscope-LEDControl.h"
|
||||
|
||||
// Support for "Numlock" mode, which is mostly just the Numlock specific LED mode
|
||||
#include "Kaleidoscope-Numlock.h"
|
||||
// Support for "Numpad" mode, which is mostly just the Numpad specific LED mode
|
||||
#include "Kaleidoscope-NumPad.h"
|
||||
|
||||
// Support for an "LED off mode"
|
||||
#include "LED-Off.h"
|
||||
@ -134,7 +134,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
|
||||
Key_LeftControl, Key_Backspace, Key_LeftGui, Key_LeftShift,
|
||||
ShiftToLayer(FUNCTION),
|
||||
|
||||
M(MACRO_ANY), Key_6, Key_7, Key_8, Key_9, Key_0, Key_KeypadNumLock,
|
||||
M(MACRO_ANY), Key_6, Key_7, Key_8, Key_9, Key_0, LockLayer(NUMPAD),
|
||||
Key_Enter, Key_Y, Key_U, Key_I, Key_O, Key_P, Key_Equals,
|
||||
Key_H, Key_J, Key_K, Key_L, Key_Semicolon, Key_Quote,
|
||||
Key_RightAlt, Key_N, Key_M, Key_Comma, Key_Period, Key_Slash, Key_Minus,
|
||||
@ -299,9 +299,9 @@ void setup() {
|
||||
// The stalker effect lights up the keys you've pressed recently
|
||||
&StalkerEffect,
|
||||
|
||||
// The numlock plugin is responsible for lighting up the 'numpad' mode
|
||||
// The numpad plugin is responsible for lighting up the 'numpad' mode
|
||||
// with a custom LED effect
|
||||
&NumLock,
|
||||
&NumPad,
|
||||
|
||||
// The macros plugin adds support for macros
|
||||
&Macros,
|
||||
@ -310,9 +310,9 @@ void setup() {
|
||||
&MouseKeys
|
||||
);
|
||||
|
||||
// While we hope to improve this in the future, the NumLock plugin
|
||||
// While we hope to improve this in the future, the NumPad plugin
|
||||
// needs to be explicitly told which keymap layer is your numpad layer
|
||||
NumLock.numPadLayer = NUMPAD;
|
||||
NumPad.numPadLayer = NUMPAD;
|
||||
|
||||
// We configure the AlphaSquare effect to use RED letters
|
||||
AlphaSquare.color = { 255, 0, 0 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user