diff options
Diffstat (limited to 'keyboards/a_dux/a_dux.c')
-rw-r--r-- | keyboards/a_dux/a_dux.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/a_dux/a_dux.c b/keyboards/a_dux/a_dux.c new file mode 100644 index 000000000..16bac16fa --- /dev/null +++ b/keyboards/a_dux/a_dux.c | |||
@@ -0,0 +1,37 @@ | |||
1 | /* Copyright 2018-2020 | ||
2 | * ENDO Katsuhiro <[email protected]> | ||
3 | * David Philip Barr <@davidphilipbarr> | ||
4 | * Pierre Chevalier <[email protected]> | ||
5 | * @filterpaper | ||
6 | * | ||
7 | * This program is free software: you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation, either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | #include "a_dux.h" | ||
21 | |||
22 | #ifdef SWAP_HANDS_ENABLE | ||
23 | __attribute__ ((weak)) | ||
24 | const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | // Left | ||
26 | {{4, 4}, {3, 4}, {2, 4}, {1, 4}, {0, 4}}, | ||
27 | {{4, 5}, {3, 5}, {2, 5}, {1, 5}, {0, 5}}, | ||
28 | {{4, 6}, {3, 6}, {2, 6}, {1, 6}, {0, 6}}, | ||
29 | {{1, 7}, {0, 7}, {2, 7}, {3, 7}, {4, 7}}, | ||
30 | // Right | ||
31 | {{4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, | ||
32 | {{4, 1}, {3, 1}, {2, 1}, {1, 1}, {0, 1}}, | ||
33 | {{4, 2}, {3, 2}, {2, 2}, {1, 2}, {0, 2}}, | ||
34 | {{1, 3}, {0, 3}, {2, 3}, {3, 3}, {4, 3}} | ||
35 | }; | ||
36 | #endif | ||
37 | |||