QMK/keyboards/betalupi_ergodox/features/hid_spellcheck.h

20 lines
501 B
C
Raw Normal View History

2022-07-20 21:19:13 -07:00
#pragma once
2022-07-21 17:49:35 -07:00
2022-11-20 20:45:13 -08:00
#ifdef ENABLE_HID_SPELLCHECK
2022-07-21 17:49:35 -07:00
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