Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021
  1. #include "action_oneshot.h"
  2. #ifndef NO_ACTION_ONESHOT
  3. oneshot_state_t oneshot_state;
  4. void oneshot_start(uint8_t mods)
  5. {
  6. oneshot_state.mods = mods;
  7. }
  8. void oneshot_cancel(void)
  9. {
  10. oneshot_state.mods = 0;
  11. }
  12. void oneshot_toggle(void)
  13. {
  14. oneshot_state.disabled = !oneshot_state.disabled;
  15. }
  16. #endif