diff options
author | TheOneTrueTrench <[email protected]> | 2018-11-06 20:01:18 +0000 |
---|---|---|
committer | Drashna Jaelre <[email protected]> | 2018-11-06 12:01:18 -0800 |
commit | 8f5ac39fb90e9036a9df60f286888e02daf3fd1b (patch) | |
tree | 213e9c4f9bedba03696bda5f6fba8fb1f42b4c8e /keyboards/dz60/keymaps/marianas/relativity.h | |
parent | f8d800583544bca258b9c10af3ba44de9764639e (diff) | |
download | qmk_firmware-8f5ac39fb90e9036a9df60f286888e02daf3fd1b.tar.gz qmk_firmware-8f5ac39fb90e9036a9df60f286888e02daf3fd1b.zip |
separated all my changes into separate files, working on generalizing my relativity macros. (#4368)
* Updating to my local changes.
* Added auto-complete for joins.
* Added lights to imply current state better
Diffstat (limited to 'keyboards/dz60/keymaps/marianas/relativity.h')
-rw-r--r-- | keyboards/dz60/keymaps/marianas/relativity.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/dz60/keymaps/marianas/relativity.h b/keyboards/dz60/keymaps/marianas/relativity.h new file mode 100644 index 0000000000..c917b1a4dc --- /dev/null +++ b/keyboards/dz60/keymaps/marianas/relativity.h @@ -0,0 +1,32 @@ +#include QMK_KEYBOARD_H +#define macroTapsLen 32 +#define tableNameListLen 32 +#define charCountLen 32 + +#define relTimeout 1500 + + +void activateRelativity(void); +bool deactivateRelativity(void); +void initStringData(void); +bool containsCode(uint16_t kc); +bool lastCodeIs(uint16_t kc); +bool last2CodeAre(uint16_t kc); +bool last2CodesAre(uint16_t kc, uint16_t kc2); +void addKeyCode(uint16_t kc); +void eraseKeyCodes(void); +void eraseCharCounts(void); +void printTableAbbreviation(void); +void eraseTableAbbreviation(void); +void printString(char* str); +void printStringAndQueueChar(char* str); +void ReplaceString(char *orig, char *repl); +void deletePrev(void); +bool processSmartMacroTap(uint16_t kc); +bool isShifted(void); +void setShifted(bool); + + + +bool handleSmartMacros(uint16_t keycode, keyrecord_t *record); +bool storeShiftState(uint16_t keycode, keyrecord_t *record); |