Commit Graph

24 Commits (ad94e4dade71f2a5aa8aead6b0a3f8065e38674f)

Author SHA1 Message Date
Gergely Nagy 1d1affb71b Use an event loop hook instead of requiring a macro to detect NumLock
7 years ago
Gergely Nagy da0c998760 Updated to use the new LEDMode/LEDControl API
7 years ago
Jesse Vincent 9fa29b709d
Turn off the LEDs when exiting NumLock mode.
7 years ago
Jesse Vincent 6dc23db20b
When figuring out which keys to light up with LEDs: Switch to looking up the numpad keys based on the currently active layer
7 years ago
Jesse Vincent c575fd0d52
When in numlock, we should only light up the numpad keys, not everything else
7 years ago
Gergely Nagy 92050c2ab7 Highlight only those keys that have no flag set
7 years ago
Gergely Nagy 23b341e2b3 Skip layer switching keys when it comes to highlighting
7 years ago
Gergely Nagy 4f7e60ec52 Highlight changed keys on the NumLock layer, not just NumPad ones
7 years ago
Jesse Vincent 137ff37610
CamelCaseifcation of LED related functions
7 years ago
Gergely Nagy f2d3d91a73 Simplify the API
7 years ago
Gergely Nagy 40328cd342 Re-init the active LED mode when NumLock is turned off
7 years ago
Gergely Nagy 98bf56d097 Instead of acting as a strange LED mode, use a loop hook instead
7 years ago
Jesse Vincent 42c833c81a
linter cleanup
8 years ago
Jesse Vincent 18fe127ac2
astyle with current project style guidelines
8 years ago
Jesse Vincent ca71ff2c75
Fix the name of the numlock key
8 years ago
Jesse Vincent 2fbeb322d8 Switch from a hardcoded structure that's in BGR order to using a cRGB and getting our color (red) correct
8 years ago
Gergely Nagy f2773e1444 Mark the class a descendant of public LEDMode
8 years ago
Gergely Nagy 5fe8ff28cb The Big Rename
8 years ago
Gergely Nagy 89b92927e4 Rename to Keyboardio-Numlock
8 years ago
Gergely Nagy 17046f281e Introduce two helper macros
8 years ago
Gergely Nagy 051778048d Turn the plugin into a macro
8 years ago
Gergely Nagy 975cd0bf04 Use the new, double-add protected hook functions
8 years ago
Gergely Nagy ed92d5109c Fix the LED mode handling
8 years ago
Gergely Nagy 5df5b209d7 Lifted out from Keyboardio-LEDControl
8 years ago