summaryrefslogtreecommitdiff
path: root/keyboards/oddball/oddball.h
diff options
context:
space:
mode:
authorAlexander Tulloh <alexandertulloh@gmail.com>2021-01-11 14:13:47 +1100
committerGitHub <noreply@github.com>2021-01-10 19:13:47 -0800
commitffd8ff642d4257fa588d9f42144d923bd570bbbd (patch)
tree5be7f83988113066a9a0b46383839082235c2be8 /keyboards/oddball/oddball.h
parent6edbd845ebda0b67e9d56a21977381949476930a (diff)
[Keyboard] Oddball keyboard and optical sensor update (#10450)
* Add oddballl v2 - add CPI options - add scroll support - add click-and-drag support - PMW3360 implementation - ADNS9800 improvements * Set default make directory * Update readme with PMW config * Change bootloader * Update unused pins on v2 * Remove diode switch * Move bootloader selection to keyboard version level * Change default keyboard folder to v1 * Move sensor selection to keymap * Remove PK debounce * Change to only send mouse report on change * Change CPI function cpi type * Remove EEPROM state check * Update CPI to only change on key down * Fix incorrect F8 in keymap * Add v2.1 with more convenient controller pinout * Add keyboard readmes * Update keyboards/oddball/pmw/pmw3360_srom_0x04.h Remove direct AVR reference Co-authored-by: Ryan <fauxpark@gmail.com> * Remove direct AVR reference Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Alexander Tulloh <alex@riberry.io> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/oddball/oddball.h')
-rw-r--r--keyboards/oddball/oddball.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/keyboards/oddball/oddball.h b/keyboards/oddball/oddball.h
index 1f52271dbd..1d13459c7a 100644
--- a/keyboards/oddball/oddball.h
+++ b/keyboards/oddball/oddball.h
@@ -18,14 +18,6 @@
#include "quantum.h"
-/* This is a shortcut to help you visually see your layout.
- *
- * The first section contains all of the arguments representing the physical
- * layout of the board and position of the keys.
- *
- * The second converts the arguments into a two-dimensional array which
- * represents the switch matrix.
- */
#define LAYOUT( \
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
@@ -42,3 +34,17 @@
{ R25, R24, R23, R22, R21, R20 }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, RT2, RT1 } \
}
+
+enum custom_keycodes {
+ KC_SCROLL = SAFE_RANGE,
+ KC_CPI_1,
+ KC_CPI_2,
+ KC_CPI_3
+};
+
+typedef union {
+ uint32_t raw;
+ struct {
+ uint16_t cpi;
+ };
+} config_oddball_t;