diff options
Diffstat (limited to 'keyboards/oddball/oddball.h')
| -rw-r--r-- | keyboards/oddball/oddball.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/keyboards/oddball/oddball.h b/keyboards/oddball/oddball.h index 1f52271db..1d13459c7 100644 --- a/keyboards/oddball/oddball.h +++ b/keyboards/oddball/oddball.h | |||
| @@ -18,14 +18,6 @@ | |||
| 18 | 18 | ||
| 19 | #include "quantum.h" | 19 | #include "quantum.h" |
| 20 | 20 | ||
| 21 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT( \ | 21 | #define LAYOUT( \ |
| 30 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | 22 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ |
| 31 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ | 23 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ |
| @@ -42,3 +34,17 @@ | |||
| 42 | { R25, R24, R23, R22, R21, R20 }, \ | 34 | { R25, R24, R23, R22, R21, R20 }, \ |
| 43 | { KC_NO, KC_NO, KC_NO, KC_NO, RT2, RT1 } \ | 35 | { KC_NO, KC_NO, KC_NO, KC_NO, RT2, RT1 } \ |
| 44 | } | 36 | } |
| 37 | |||
| 38 | enum custom_keycodes { | ||
| 39 | KC_SCROLL = SAFE_RANGE, | ||
| 40 | KC_CPI_1, | ||
| 41 | KC_CPI_2, | ||
| 42 | KC_CPI_3 | ||
| 43 | }; | ||
| 44 | |||
| 45 | typedef union { | ||
| 46 | uint32_t raw; | ||
| 47 | struct { | ||
| 48 | uint16_t cpi; | ||
| 49 | }; | ||
| 50 | } config_oddball_t; | ||
