diff options
Diffstat (limited to 'users/drashna')
| -rw-r--r-- | users/drashna/config.h | 1 | ||||
| -rw-r--r-- | users/drashna/drashna.c | 18 | ||||
| -rw-r--r-- | users/drashna/drashna.h | 1 |
3 files changed, 1 insertions, 19 deletions
diff --git a/users/drashna/config.h b/users/drashna/config.h index 68394ee4d..f9b0d4d17 100644 --- a/users/drashna/config.h +++ b/users/drashna/config.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | #ifdef AUDIO_ENABLE | 5 | #ifdef AUDIO_ENABLE |
| 6 | #define AUDIO_CLICKY | ||
| 6 | #define STARTUP_SONG SONG(E1M1_DOOM) | 7 | #define STARTUP_SONG SONG(E1M1_DOOM) |
| 7 | #define GOODBYE_SONG SONG(SONIC_RING) | 8 | #define GOODBYE_SONG SONG(SONIC_RING) |
| 8 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ | 9 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ |
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 170c320d3..73bd249e4 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c | |||
| @@ -224,19 +224,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 224 | xprintf("KL: row: %u, column: %u, pressed: %u\n", record->event.key.col, record->event.key.row, record->event.pressed); | 224 | xprintf("KL: row: %u, column: %u, pressed: %u\n", record->event.key.col, record->event.key.row, record->event.pressed); |
| 225 | #endif //CONSOLE_ENABLE | 225 | #endif //CONSOLE_ENABLE |
| 226 | 226 | ||
| 227 | // Run custom faux click code, but only if faux clicky is enabled | ||
| 228 | #ifdef AUDIO_ENABLE | ||
| 229 | if ( (faux_click_enabled && keycode != KC_FXCL) || (!faux_click_enabled && keycode == KC_FXCL) ) { | ||
| 230 | if (record->event.pressed) { | ||
| 231 | stop_all_notes(); | ||
| 232 | PLAY_SONG(fauxclicky_pressed); | ||
| 233 | } else { | ||
| 234 | stop_all_notes(); | ||
| 235 | PLAY_SONG(fauxclicky_released); | ||
| 236 | } | ||
| 237 | } | ||
| 238 | #endif //AUDIO_ENABLE | ||
| 239 | |||
| 240 | 227 | ||
| 241 | switch (keycode) { | 228 | switch (keycode) { |
| 242 | case KC_QWERTY: | 229 | case KC_QWERTY: |
| @@ -398,11 +385,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 398 | #endif // TAP_DANCE_ENABLE | 385 | #endif // TAP_DANCE_ENABLE |
| 399 | 386 | ||
| 400 | 387 | ||
| 401 | case KC_FXCL: | ||
| 402 | if (!record->event.pressed) { // Toggles the custom faux click code | ||
| 403 | faux_click_enabled = !faux_click_enabled; | ||
| 404 | } | ||
| 405 | return false; break; | ||
| 406 | case KC_RGB_T: // This allows me to use underglow as layer indication, or as normal | 388 | case KC_RGB_T: // This allows me to use underglow as layer indication, or as normal |
| 407 | #ifdef RGBLIGHT_ENABLE | 389 | #ifdef RGBLIGHT_ENABLE |
| 408 | if (record->event.pressed) { | 390 | if (record->event.pressed) { |
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h index 1086fa02e..b7cbaa44a 100644 --- a/users/drashna/drashna.h +++ b/users/drashna/drashna.h | |||
| @@ -83,7 +83,6 @@ enum userspace_custom_keycodes { | |||
| 83 | KC_SECRET_3, | 83 | KC_SECRET_3, |
| 84 | KC_SECRET_4, | 84 | KC_SECRET_4, |
| 85 | KC_SECRET_5, | 85 | KC_SECRET_5, |
| 86 | KC_FXCL, | ||
| 87 | NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes | 86 | NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes |
| 88 | }; | 87 | }; |
| 89 | 88 | ||
