summaryrefslogtreecommitdiffstats
path: root/windows/neo-vars/src/source/levelfunctions.ahk
diff options
context:
space:
mode:
Diffstat (limited to 'windows/neo-vars/src/source/levelfunctions.ahk')
-rw-r--r--windows/neo-vars/src/source/levelfunctions.ahk18
1 files changed, 12 insertions, 6 deletions
diff --git a/windows/neo-vars/src/source/levelfunctions.ahk b/windows/neo-vars/src/source/levelfunctions.ahk
index 5d5eff2..c0a4ec1 100644
--- a/windows/neo-vars/src/source/levelfunctions.ahk
+++ b/windows/neo-vars/src/source/levelfunctions.ahk
@@ -68,12 +68,14 @@ ToggleMod2Lock() {
if (isMod2Locked)
{
isMod2Locked := 0
- KeyboardLED(4,"off")
+ NEOCapsLockLEDState := "Off"
+ UpdateNEOLEDS()
}
else
{
isMod2Locked := 1
- KeyBoardLED(4,"on")
+ NEOCapsLockLEDState := "On"
+ UpdateNEOLEDS()
}
}
@@ -82,14 +84,18 @@ ToggleMod4Lock() {
global
if (IsMod4Locked) {
IsMod4Locked := 0
- if (UseMod4Light)
- KeyboardLED(1,"off")
+ if (UseMod4Light) {
+ NEOScrollLockLEDState := "Off"
+ UpdateNEOLEDS()
+ }
if (zeigeLockBox)
TrayTip,Mod4-Feststellung,Die Feststellung wurde aufgehoben.,3,1
} else {
IsMod4Locked := 1
- if (UseMod4Light)
- KeyboardLED(1,"on")
+ if (UseMod4Light) {
+ NEOScrollLockLEDState := "On"
+ UpdateNEOLEDS()
+ }
if (zeigeLockBox)
TrayTip,Mod4-Feststellung,Um Mod4 wieder zu lösen`, drücke beide Mod4-Tasten gleichzeitig!,3,1
}