caseKC_DIABLO_CLEAR:// reset all Diable timers, disabling them
if(record->event.pressed){
uint8_tdtime;
for(dtime=0;dtime<4;dtime++){
diablo_key_time[dtime]=diablo_times[0];
}
}
returnfalse;
break;
#endif
caseKC_OVERWATCH:// reset all Diable timers, disabling them
if(record->event.pressed){
is_overwatch=!is_overwatch;
has_layer_changed=true;
}
returnfalse;
break;
caseKC_SALT:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Salt, salt, salt...");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_MORESALT:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Please sir, can I have some more salt?!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_SALTHARD:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Your salt only makes my penis that much harder, and even more aggressive!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_GOODGAME:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Good game, everyone!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_GLHF:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Good luck, have fun!!!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_SYMM:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Left click to win!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_DOOMFIST:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("Hey, look at me. I'm Doomfist, and I'm overpowered! All I do is spam punches all day! I'm DPS, tank and defense, rolled into one! All I need is team healing to be complete!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_JUSTGAME:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("It may be a game, but if you don't want to actually try, please go play AI, so that people that actually want to take the game seriously and \"get good\" have a place to do so without trolls like you throwing games.");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
caseKC_TORB:
if(!record->event.pressed){
register_code(kc);
unregister_code(kc);
_delay_ms(50);
SEND_STRING("That was positively riveting!");
register_code(KC_ENTER);
unregister_code(KC_ENTER);
}
returnfalse;
break;
}
returntrue;
}
#ifdef TAP_DANCE_ENABLE
// Sends the key press to system, but only if on the Diablo layer
voidsend_diablo_keystroke(uint8_tdiablo_key){
if(current_layer==_DIABLO){
switch(diablo_key){
case0:
SEND_STRING("1");
break;
case1:
SEND_STRING("2");
break;
case2:
SEND_STRING("3");
break;
case3:
SEND_STRING("4");
break;
}
}
}
// Checks each of the 4 timers/keys to see if enough time has elapsed
// Runs the "send string" command if enough time has passed, and resets the timer.