diff options
Diffstat (limited to 'keyboards/dc01/numpad/numpad.h')
| -rw-r--r-- | keyboards/dc01/numpad/numpad.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/keyboards/dc01/numpad/numpad.h b/keyboards/dc01/numpad/numpad.h index 702926184..110f893b4 100644 --- a/keyboards/dc01/numpad/numpad.h +++ b/keyboards/dc01/numpad/numpad.h | |||
| @@ -13,24 +13,19 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #ifndef NUMPAD_H | 16 | #pragma once |
| 17 | #define NUMPAD_H | ||
| 18 | 17 | ||
| 19 | #include "quantum.h" | 18 | #include "quantum.h" |
| 20 | 19 | ||
| 21 | #define XXX KC_NO | 20 | #define XXX KC_NO |
| 22 | 21 | ||
| 23 | // This a shortcut to help you visually see your layout. | ||
| 24 | // The first section contains all of the arguments | ||
| 25 | // The second converts the arguments into a two-dimensional array | ||
| 26 | #define LAYOUT_numpad_5x4( \ | 22 | #define LAYOUT_numpad_5x4( \ |
| 27 | K00, K01, K02, K03, \ | 23 | K00, K01, K02, K03, \ |
| 28 | K10, K11, K12, \ | 24 | K10, K11, K12, \ |
| 29 | K20, K21, K22, K13, \ | 25 | K20, K21, K22, K13, \ |
| 30 | K30, K31, K32, \ | 26 | K30, K31, K32, \ |
| 31 | K40, K42, K43 \ | 27 | K40, K42, K43 \ |
| 32 | ) \ | 28 | ) { \ |
| 33 | { \ | ||
| 34 | { K00, K01, K02, K03 }, \ | 29 | { K00, K01, K02, K03 }, \ |
| 35 | { K10, K11, K12, K13 }, \ | 30 | { K10, K11, K12, K13 }, \ |
| 36 | { K20, K21, K22, XXX }, \ | 31 | { K20, K21, K22, XXX }, \ |
| @@ -44,13 +39,10 @@ | |||
| 44 | K20, K21, K22, K23, \ | 39 | K20, K21, K22, K23, \ |
| 45 | K30, K31, K32, K33, \ | 40 | K30, K31, K32, K33, \ |
| 46 | K40, K41, K42, K43 \ | 41 | K40, K41, K42, K43 \ |
| 47 | ) \ | 42 | ) { \ |
| 48 | { \ | ||
| 49 | { K00, K01, K02, K03 }, \ | 43 | { K00, K01, K02, K03 }, \ |
| 50 | { K10, K11, K12, K13 }, \ | 44 | { K10, K11, K12, K13 }, \ |
| 51 | { K20, K21, K22, K23 }, \ | 45 | { K20, K21, K22, K23 }, \ |
| 52 | { K30, K31, K32, K33 }, \ | 46 | { K30, K31, K32, K33 }, \ |
| 53 | { K40, K41, K42, K43 } \ | 47 | { K40, K41, K42, K43 } \ |
| 54 | } | 48 | } |
| 55 | |||
| 56 | #endif | ||
