|
@@ -1,4 +1,4 @@
|
|
|
-#include "s60-x.h"
|
|
|
+#include "s60_x.h"
|
|
|
|
|
|
#define _DEFAULT 0
|
|
|
#define _FN 1
|
|
@@ -73,12 +73,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
)
|
|
|
};
|
|
|
|
|
|
-const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|
|
- keyevent_t event = record->event;
|
|
|
-
|
|
|
- switch (id) {
|
|
|
-
|
|
|
- }
|
|
|
+const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|
|
return MACRO_NONE;
|
|
|
}
|
|
|
|
|
@@ -108,42 +103,58 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|
|
switch (id) {
|
|
|
case RGBLED_TOGGLE:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_toggle();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_INCREASE_HUE:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_increase_hue();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_DECREASE_HUE:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_decrease_hue();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_INCREASE_SAT:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_increase_sat();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_DECREASE_SAT:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_decrease_sat();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_INCREASE_VAL:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_increase_val();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_DECREASE_VAL:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_decrease_val();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
case RGBLED_STEP_MODE:
|
|
|
if (record->event.pressed) {
|
|
|
+ #ifdef RGB_ENABLE
|
|
|
rgblight_step();
|
|
|
+ #endif
|
|
|
}
|
|
|
break;
|
|
|
}
|