diff options
author | myoung34 <myoung34@my.apsu.edu> | 2020-08-22 14:59:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 12:59:24 -0700 |
commit | e02f4798f97f7432e8df55846f8eb496b6ac45d1 (patch) | |
tree | 7551250fbca9c09199a9750cd0567520bdd2fe30 /keyboards/handwired/pterodactyl/pterodactyl.c | |
parent | cf4b493c247c1e4f02f10cf62bc499ce2d001380 (diff) | |
download | qmk_firmware-e02f4798f97f7432e8df55846f8eb496b6ac45d1.tar.gz |
[Keyboard] Pterodactyl handwired (#9884)
* Working bluetooth fork of dactyl
* Refactor thanks to zvecr
* Final refactor per PR comments
* Pragma once
* Update keyboards/handwired/pterodactyl/pterodactyl.h
* Update keyboards/handwired/pterodactyl/readme.md
* Update keyboards/handwired/pterodactyl/rules.mk
* Update keyboards/handwired/pterodactyl/rules.mk
* Update keyboards/handwired/pterodactyl/config.h
* Update keyboards/handwired/pterodactyl/pterodactyl.h
* Update keyboards/handwired/pterodactyl/config.h
* Update keyboards/handwired/pterodactyl/pterodactyl.h
* update readme
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c
* Update keyboards/handwired/pterodactyl/info.json
* Update keyboards/handwired/pterodactyl/readme.md
* Update keyboards/handwired/pterodactyl/config.h
* Update keyboards/handwired/pterodactyl/info.json
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c
* Update keyboards/handwired/pterodactyl/pterodactyl.h
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c
* Update keyboards/handwired/pterodactyl/matrix.c
* Fix/add formatting and info/keymap.json
* Update keyboards/handwired/pterodactyl/keymaps/default/keymap.json
* lint default/keymap.json
* format info.json
Diffstat (limited to 'keyboards/handwired/pterodactyl/pterodactyl.c')
-rw-r--r-- | keyboards/handwired/pterodactyl/pterodactyl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/keyboards/handwired/pterodactyl/pterodactyl.c b/keyboards/handwired/pterodactyl/pterodactyl.c new file mode 100644 index 000000000..736b0a62c --- /dev/null +++ b/keyboards/handwired/pterodactyl/pterodactyl.c @@ -0,0 +1,14 @@ +#include "pterodactyl.h" + +#ifdef SWAP_HANDS_ENABLE +__attribute__ ((weak)) +// swap-hands action needs a matrix to define the swap +const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { + {{0,11}, {0,10}, {0,9}, {0,8}, {0,7}, {0,6}, {0,5}, {0,4}, {0,3}, {0,2}, {0,1}, {0,0}}, + {{1,11}, {1,11}, {1,9}, {1,8}, {1,7}, {1,6}, {1,5}, {1,4}, {1,3}, {1,2}, {1,1}, {1,0}}, + {{2,11}, {2,12}, {2,9}, {2,8}, {2,7}, {2,6}, {2,5}, {2,4}, {2,3}, {2,2}, {2,1}, {2,0}}, + {{3,11}, {3,13}, {3,9}, {3,8}, {3,7}, {3,6}, {3,5}, {3,4}, {3,3}, {3,2}, {3,1}, {3,0}}, + {{4,11}, {4,14}, {4,9}, {4,8}, {4,7}, {4,6}, {4,5}, {4,4}, {4,3}, {4,2}, {4,1}, {4,0}}, + {{5,11}, {5,15}, {5,9}, {5,8}, {5,7}, {5,6}, {5,5}, {5,4}, {5,3}, {5,2}, {5,1}, {5,0}}, +}; +#endif |