Cleanup
parent
d795d84f41
commit
afa07ce83c
2
build.sh
2
build.sh
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# Be careful, it may not be using the latest QMK.
|
# Be careful, it may not be using the latest QMK.
|
||||||
|
|
||||||
docker run -it \
|
docker run -it --rm \
|
||||||
--user $(id -u):$(id -g) \
|
--user $(id -u):$(id -g) \
|
||||||
-v "$(pwd)/output:/build_output" \
|
-v "$(pwd)/output:/build_output" \
|
||||||
-v "$(pwd)/keyboards:/qmk_firmware/keyboards:ro" \
|
-v "$(pwd)/keyboards:/qmk_firmware/keyboards:ro" \
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
extern uint8_t layer_layouts[];
|
extern uint8_t layer_layouts[];
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
#include "features/spellcheck.h"
|
#include "features/hid_spellcheck.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// See features/beta_rawhid.h for prococol documentation
|
// See features/beta_rawhid.h for prococol documentation
|
||||||
|
@ -30,7 +30,7 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
case CMD_SPELLCHECK_WORD:
|
case CMD_SPELLCHECK_WORD:
|
||||||
if (data[1]) {
|
if (data[1]) {
|
||||||
ergodox_right_led_1_on();
|
ergodox_right_led_1_on();
|
||||||
|
@ -113,7 +113,7 @@ void hid_send_special_char(uint16_t char_id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
void hid_send_word() {
|
void hid_send_word() {
|
||||||
uint8_t packet[RAW_EPSIZE] = {
|
uint8_t packet[RAW_EPSIZE] = {
|
||||||
CMD_SPELLCHECK_WORD,
|
CMD_SPELLCHECK_WORD,
|
||||||
|
|
|
@ -21,7 +21,7 @@ void _hid_send_state(_hid_send_state_args args);
|
||||||
|
|
||||||
void hid_send_special_char(uint16_t char_utf_8);
|
void hid_send_special_char(uint16_t char_utf_8);
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
void hid_send_word(void);
|
void hid_send_word(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
|
|
||||||
#include "keymap_russian.h"
|
#include "keymap_russian.h"
|
||||||
#include "keymap_us_international.h"
|
#include "keymap_us_international.h"
|
||||||
|
|
||||||
#include "features/spellcheck.h"
|
#include "features/hid_spellcheck.h"
|
||||||
#include "features/beta_rawhid.h"
|
#include "features/beta_rawhid.h"
|
||||||
#include "extra_mappings.h"
|
#include "extra_mappings.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
|
|
||||||
// Enable spellcheck over HID
|
// Enable spellcheck over HID
|
||||||
#define BETA_ENABLE_SPELLCHECK
|
#define ENABLE_HID_SPELLCHECK
|
||||||
|
|
||||||
// RGBLight effects
|
// RGBLight effects
|
||||||
// Static color is always enabled.
|
// Static color is always enabled.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "keymap.h"
|
#include "keymap.h"
|
||||||
#include "layers/layers.h"
|
#include "layers/layers.h"
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
#include "features/spellcheck.h"
|
#include "features/hid_spellcheck.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "features/beta_rawhid.h"
|
#include "features/beta_rawhid.h"
|
||||||
|
@ -63,7 +63,7 @@ void matrix_scan_user(void) {
|
||||||
// Return TRUE to allow QMK to handle keypress.
|
// Return TRUE to allow QMK to handle keypress.
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
#ifdef BETA_ENABLE_SPELLCHECK
|
#ifdef ENABLE_HID_SPELLCHECK
|
||||||
if (!process_spellcheck(keycode, record)) { return false; }
|
if (!process_spellcheck(keycode, record)) { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,8 @@ SRC += \
|
||||||
matrix.c \
|
matrix.c \
|
||||||
led_i2c.c \
|
led_i2c.c \
|
||||||
features/beta_rawhid.c \
|
features/beta_rawhid.c \
|
||||||
features/spellcheck.c \
|
features/hid_spellcheck.c \
|
||||||
|
features/autocorrect/autocorrect.c \
|
||||||
extra_mappings.c
|
extra_mappings.c
|
||||||
|
|
||||||
QUANTUM_LIB_SRC += i2c_master.c
|
QUANTUM_LIB_SRC += i2c_master.c
|
||||||
|
|
Loading…
Reference in New Issue