process_steno.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright 2017 Joseph Wasson
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "quantum.h"
  18. #define BOLT_STROKE_SIZE 4
  19. #define GEMINI_STROKE_SIZE 6
  20. #ifdef STENO_ENABLE_GEMINI
  21. # define MAX_STROKE_SIZE GEMINI_STROKE_SIZE
  22. #else
  23. # define MAX_STROKE_SIZE BOLT_STROKE_SIZE
  24. #endif
  25. typedef enum {
  26. STENO_MODE_GEMINI,
  27. STENO_MODE_BOLT,
  28. } steno_mode_t;
  29. bool process_steno(uint16_t keycode, keyrecord_t *record);
  30. #ifdef STENO_ENABLE_ALL
  31. void steno_init(void);
  32. void steno_set_mode(steno_mode_t mode);
  33. #endif // STENO_ENABLE_ALL