diff options
Diffstat (limited to 'keyboards/converter/adb_usb/adb_usb.h')
-rw-r--r-- | keyboards/converter/adb_usb/adb_usb.h | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/keyboards/converter/adb_usb/adb_usb.h b/keyboards/converter/adb_usb/adb_usb.h new file mode 100644 index 000000000..ddbbd7156 --- /dev/null +++ b/keyboards/converter/adb_usb/adb_usb.h | |||
@@ -0,0 +1,108 @@ | |||
1 | /* | ||
2 | Copyright 2011,2012,2013 Jun Wako <[email protected]> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | Ported to QMK by Peter Roe <[email protected]> | ||
18 | */ | ||
19 | |||
20 | #pragma once | ||
21 | |||
22 | #include "quantum.h" | ||
23 | |||
24 | #define XXX KC_NO | ||
25 | |||
26 | /* M0115/M3501 Apple Extended Keyboard ANSI | ||
27 | * ,---. ,---------------. ,---------------. ,---------------. ,-----------. ,---. | ||
28 | * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |Pwr| | ||
29 | * `---' `---------------' `---------------' `---------------' `-----------' `---' | ||
30 | * ,-----------------------------------------------------------. ,-----------. ,---------------. | ||
31 | * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa| |Ins|Hom|PgU| |NmL| =| /| *| | ||
32 | * |-----------------------------------------------------------| |-----------| |---------------| | ||
33 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD| | 7| 8| 9| -| | ||
34 | * |-----------------------------------------------------------| `-----------' |---------------| | ||
35 | * |CapsLo| A| S| D| F| G| H| J| K| L| ;| '|Return | | 4| 5| 6| +| | ||
36 | * |-----------------------------------------------------------| ,---. |---------------| | ||
37 | * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| | | ||
38 | * |-----------------------------------------------------------| ,-----------. |-----------|Ent| | ||
39 | * |Ctrl |Opt |Cmd | Space | |Opt |Ctrl | |Lef|Dow|Rig| | 0| .| | | ||
40 | * `-----------------------------------------------------------' `-----------' `---------------' | ||
41 | */ | ||
42 | #define LAYOUT_ext_ansi( \ | ||
43 | k35, k7A, k78, k63, k76, k60, k61, k62, k64, k65, k6D, k67, k6F, k69, k6B, k71, k7F, \ | ||
44 | k32, k12, k13, k14, k15, k17, k16, k1A, k1C, k19, k1D, k1B, k18, k33, k72, k73, k74, k47, k51, k4B, k43, \ | ||
45 | k30, k0C, k0D, k0E, k0F, k11, k10, k20, k22, k1F, k23, k21, k1E, k2A, k75, k77, k79, k59, k5B, k5C, k4E, \ | ||
46 | k39, k00, k01, k02, k03, k05, k04, k26, k28, k25, k29, k27, k24, k56, k57, k58, k45, \ | ||
47 | k38, k06, k07, k08, k09, k0B, k2D, k2E, k2B, k2F, k2C, k7B, k3E, k53, k54, k55,\ | ||
48 | k36, k3A, k37, k31, k7C, k7D, k3B, k3D, k3C, k52, k41, k4C \ | ||
49 | ) { \ | ||
50 | { k00, k01, k02, k03, k04, k05, k06, k07 }, \ | ||
51 | { k08, k09, XXX, k0B, k0C, k0D, k0E, k0F }, \ | ||
52 | { k10, k11, k12, k13, k14, k15, k16, k17 }, \ | ||
53 | { k18, k19, k1A, k1B, k1C, k1D, k1E, k1F }, \ | ||
54 | { k20, k21, k22, k23, k24, k25, k26, k27 }, \ | ||
55 | { k28, k29, k2A, k2B, k2C, k2D, k2E, k2F }, \ | ||
56 | { k30, k31, k32, k33, XXX, k35, k36, k37 }, \ | ||
57 | { k38, k39, k3A, k3B, k3C, k3D, k3E, XXX }, \ | ||
58 | { XXX, k41, XXX, k43, XXX, k45, XXX, k47 }, \ | ||
59 | { XXX, XXX, XXX, k4B, k4C, XXX, k4E, XXX }, \ | ||
60 | { XXX, k51, k52, k53, k54, k55, k56, k57 }, \ | ||
61 | { k58, k59, XXX, k5B, k5C, XXX, XXX, XXX }, \ | ||
62 | { k60, k61, k62, k63, k64, k65, XXX, k67 }, \ | ||
63 | { XXX, k69, XXX, k6B, XXX, k6D, XXX, k6F }, \ | ||
64 | { XXX, k71, k72, k73, k74, k75, k76, k77 }, \ | ||
65 | { k78, k79, k7A, k7B, k7C, k7D, XXX, k7F } \ | ||
66 | } | ||
67 | |||
68 | /* M0116 Apple Standard Keyboard ANSI | ||
69 | * +-------+ | ||
70 | * | power | | ||
71 | * +-------+ | ||
72 | * +---+---+---+---+---+---+---+---+---+---+---+---+---+-----+ +---+---+---+---+ | ||
73 | * |esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | bks | |clr| = | / | * | | ||
74 | * +---------------------------------------------------------+ +---+---+---+---+ | ||
75 | * | tab | q | w | e | r | t | y | u | i | o | p | [ | ] | | | 7 | 8 | 9 | + | | ||
76 | * +-----------------------------------------------------+ | +---+---+---+---+ | ||
77 | * | ctrl | a | s | d | f | g | h | j | k | l | ; | ' |return| | 4 | 5 | 6 | - | | ||
78 | * +---------------------------------------------------------+ +---+---+---+---+ | ||
79 | * | shift | z | x | c | v | b | n | m | , | . | / | shift | | 1 | 2 | 3 | | | ||
80 | * +---------------------------------------------------------+ +-------+---|ent| | ||
81 | * |cap|opt|comnd| ` | | \ |lef|rig|dwn|up | | 0 | . | | | ||
82 | * +---------------------------------------------------------+ +-------+---+---+ | ||
83 | */ | ||
84 | #define LAYOUT_m0116_ansi( \ | ||
85 | k7F, \ | ||
86 | k35, k12, k13, k14, k15, k17, k16, k1A, k1C, k19, k1D, k1B, k18, k33, k47, k51, k4B, k43, \ | ||
87 | k30, k0C, k0D, k0E, k0F, k11, k10, k20, k22, k1F, k23, k21, k1E, k59, k5B, k5C, k45, \ | ||
88 | k36, k00, k01, k02, k03, k05, k04, k26, k28, k25, k29, k27, k24, k56, k57, k58, k4E, \ | ||
89 | k38, k06, k07, k08, k09, k0B, k2D, k2E, k2B, k2F, k2C, k7B, k53, k54, k55, \ | ||
90 | k39, k3A, k37, k32, k31, k2A, k3B, k3C, k3D, k3E, k52, k41, k4C \ | ||
91 | ) { \ | ||
92 | { k00, k01, k02, k03, k04, k05, k06, k07 }, \ | ||
93 | { k08, k09, XXX, k0B, k0C, k0D, k0E, k0F }, \ | ||
94 | { k10, k11, k12, k13, k14, k15, k16, k17 }, \ | ||
95 | { k18, k19, k1A, k1B, k1C, k1D, k1E, k1F }, \ | ||
96 | { k20, k21, k22, k23, k24, k25, k26, k27 }, \ | ||
97 | { k28, k29, k2A, k2B, k2C, k2D, k2E, k2F }, \ | ||
98 | { k30, k31, k32, k33, XXX, k35, k36, k37 }, \ | ||
99 | { k38, k39, k3A, k3B, k3C, k3D, k3E, XXX }, \ | ||
100 | { XXX, k41, XXX, k43, XXX, k45, XXX, k47 }, \ | ||
101 | { XXX, XXX, XXX, k4B, k4C, XXX, k4E, XXX }, \ | ||
102 | { XXX, k51, k52, k53, k54, k55, k56, k57 }, \ | ||
103 | { k58, k59, XXX, k5B, k5C, XXX, XXX, XXX }, \ | ||
104 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX }, \ | ||
105 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX }, \ | ||
106 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX }, \ | ||
107 | { XXX, XXX, XXX, k7B, XXX, XXX, XXX, k7F } \ | ||
108 | } | ||