2022-07-20 21:19:13 -07:00
|
|
|
#pragma once
|
2022-07-21 17:49:35 -07:00
|
|
|
|
|
|
|
#ifdef BETA_ENABLE_SPELLCHECK
|
|
|
|
|
2022-07-20 21:19:13 -07:00
|
|
|
#include "quantum.h"
|
|
|
|
|
|
|
|
|
|
|
|
// spellcheck_buffer holds keycode history.
|
|
|
|
// It can only contain values 0x00 - 0xFF, aka standard usb hid codes.
|
|
|
|
// Host software is responsible for turning this into a usable string.
|
|
|
|
//
|
|
|
|
// Note that SOME preprocessing is done,see spellcheck.c
|
|
|
|
#define SPELLCHECK_BUFFER_MAX 16
|
|
|
|
uint8_t spellcheck_buffer[SPELLCHECK_BUFFER_MAX];
|
|
|
|
uint8_t spellcheck_buffer_size;
|
|
|
|
|
|
|
|
|
2022-07-21 17:49:35 -07:00
|
|
|
bool process_spellcheck(uint16_t keycode, keyrecord_t* record);
|
|
|
|
|
|
|
|
#endif
|