From 17c0ca6fa4f7b6f65b4442c2f5bc32fee914b376 Mon Sep 17 00:00:00 2001 From: peepeetee <43021794+peepeetee@users.noreply.github.com> Date: Sat, 12 Feb 2022 11:54:48 +0800 Subject: [Keyboard] move g heavy industry boards into /gboards (#16040) Co-authored-by: zvecr --- keyboards/butterstick/sten.h | 84 -------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 keyboards/butterstick/sten.h (limited to 'keyboards/butterstick/sten.h') diff --git a/keyboards/butterstick/sten.h b/keyboards/butterstick/sten.h deleted file mode 100644 index 0d5c58df21..0000000000 --- a/keyboards/butterstick/sten.h +++ /dev/null @@ -1,84 +0,0 @@ -// 2019, g Heavy Industries -// Blessed mother of Christ, please keep this readable -// and protect us from segfaults. For thine is the clock, -// the slave and the master. Until we return from main. -// -// Amen. - -#include QMK_KEYBOARD_H -#include "mousekey.h" -#include "keymap.h" -#include "keymap_steno.h" -#include "wait.h" - -extern size_t keymapsCount; // Total keymaps -extern uint32_t cChord; // Current Chord -extern uint32_t stenoLayers[]; // Chords that simulate QMK layers -extern size_t stenoLayerCount; // Number of simulated layers - -// Function defs -void processChord(bool useFakeSteno); -uint32_t processQwerty(bool lookup); -uint32_t processFakeSteno(bool lookup); -void saveState(uint32_t cChord); -void restoreState(void); - -// Macros for use in keymap.c -void SEND(uint8_t kc); -void REPEAT(void); -void SET_STICKY(uint32_t); -void SWITCH_LAYER(int); -void CLICK_MOUSE(uint8_t); - -// Keymap helper -#define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} -#define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \ - for(int i = 0; i < stenoLayerCount; i++) { \ - uint32_t refChord = stenoLayers[i] | chord; \ - if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \ -} - -// Shift to internal representation -// i.e) S(teno)R(ight)F -#define STN(n) (1L<