//MWII: Shared Globals bits8 LED; bits8 LEDSet1; bits8 LEDSet2; bits8 LEDSet3; bool ledsOn = false; //MWII: Custom Command if (ledsOn == true) { LEDSet1 = 0; LEDSet2 = 0; LEDSet3 = 0; LED = (0x00|XKeyLEDs); SendOutputReport("setKeypadLEDs"); ledsOn = false; } else { LEDSet1 = 0xFF; LEDSet2 = 0xFF; LEDSet3 = 0xFF; LED = (0x20|XKeyLEDs); SendOutputReport("setKeypadLEDs"); ledsOn = true; }