rootiest

irony

Jun 13th, 2021 (edited)
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. mod_state = get_mods();
  2. switch (keycode) {        
  3.     case IRONY:  // Outputs Irony/Interrobang symbols
  4.             if ((get_mods() & MOD_MASK_SHIFT)) {
  5.                 irony_shifted = true;
  6.             } else {
  7.                 irony_shifted = false;
  8.             }
  9.             if (record->event.pressed) {
  10.                 if (irony_shifted) {
  11.                     send_unicode_string(bang_str);
  12.                 } else {
  13.                     send_unicode_string(irony_str);
  14.                 }
Add Comment
Please, Sign In to add comment