unicode_macros.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * License (GPL):
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. * Remainder: © 2019 by J.B. <joshb@xs4all.nl>
  14. *
  15. */
  16. #pragma once
  17. /* This file contains function declarations for functions used in
  18. * unicode_macros.c
  19. */
  20. #define PRESCRAMBLED_U "f" // This is the letter 'u' for Unicode input, as effective on GNU/Debian/Linux 10 set to Dvorak
  21. static uint16_t key_timer; // Used in _DDL to differentiate layer switching in half or full descramble mode.
  22. // In 'full' mode it goes to _DDD and _DDA Unicode layers, in 'half' mode to _DRA and _ACC.
  23. short duo_press_nsy_dra = 0; // This remembers how many of the duo-press keys are being pressed: _NSY / _DRA layers
  24. short duo_press_acc_bon = 0; // This remembers how many of the duo-press keys are being pressed: _ACC / _BON layers
  25. void deactivate_all_but (int layer);
  26. void activate_this_layer (int layer);
  27. void indicate_base (void);
  28. void leds_show_off (void);
  29. void speed_report (int speed);
  30. void speed_led (int speed);
  31. void indicate_fun_stay (void);
  32. int write_number (long int input, short divide10);
  33. void isolate_rgblight_set (void);