diff options
| -rw-r--r-- | keyboards/handwired/battleship_gamepad/config.h | 1 | ||||
| -rw-r--r-- | keyboards/handwired/onekey/keymaps/joystick/config.h | 1 | ||||
| -rw-r--r-- | keyboards/lime/rev1/config.h | 7 | ||||
| -rw-r--r-- | tmk_core/protocol/report.h | 4 |
4 files changed, 5 insertions, 8 deletions
diff --git a/keyboards/handwired/battleship_gamepad/config.h b/keyboards/handwired/battleship_gamepad/config.h index f2eee84a57..9853f7f39d 100644 --- a/keyboards/handwired/battleship_gamepad/config.h +++ b/keyboards/handwired/battleship_gamepad/config.h | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | 18 | ||
| 19 | /* joystick configuration */ | 19 | /* joystick configuration */ |
| 20 | #define JOYSTICK_BUTTON_COUNT 25 | 20 | #define JOYSTICK_BUTTON_COUNT 25 |
| 21 | #define JOYSTICK_AXIS_COUNT 2 | ||
| 22 | #define JOYSTICK_AXIS_RESOLUTION 10 | 21 | #define JOYSTICK_AXIS_RESOLUTION 10 |
| 23 | 22 | ||
| 24 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 23 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
diff --git a/keyboards/handwired/onekey/keymaps/joystick/config.h b/keyboards/handwired/onekey/keymaps/joystick/config.h index 8a4e461b27..589e4dbf3d 100644 --- a/keyboards/handwired/onekey/keymaps/joystick/config.h +++ b/keyboards/handwired/onekey/keymaps/joystick/config.h | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #define JOYSTICK_AXIS_COUNT 2 | ||
| 4 | #define JOYSTICK_BUTTON_COUNT 1 | 3 | #define JOYSTICK_BUTTON_COUNT 1 |
diff --git a/keyboards/lime/rev1/config.h b/keyboards/lime/rev1/config.h index ec2c061372..a87c01b938 100644 --- a/keyboards/lime/rev1/config.h +++ b/keyboards/lime/rev1/config.h | |||
| @@ -16,11 +16,6 @@ | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | /* joystick support */ | 19 | #define JOYSTICK_BUTTON_COUNT 1 |
| 20 | #ifdef JOYSTICK_ENABLE | ||
| 21 | # define JOYSTICK_AXIS_COUNT 2 | ||
| 22 | # define JOYSTICK_BUTTON_COUNT 1 | ||
| 23 | # define JOYSTICK_AXIS_RESOLUTION 8 | ||
| 24 | #endif | ||
| 25 | 20 | ||
| 26 | #define SPLIT_USB_DETECT | 21 | #define SPLIT_USB_DETECT |
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h index 3028cf9426..47bc4f2f2b 100644 --- a/tmk_core/protocol/report.h +++ b/tmk_core/protocol/report.h | |||
| @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | #include "keycode.h" | 22 | #include "keycode.h" |
| 23 | #include "util.h" | 23 | #include "util.h" |
| 24 | 24 | ||
| 25 | #ifdef JOYSTICK_ENABLE | ||
| 26 | # include "joystick.h" | ||
| 27 | #endif | ||
| 28 | |||
| 25 | // clang-format off | 29 | // clang-format off |
| 26 | 30 | ||
| 27 | /* HID report IDs */ | 31 | /* HID report IDs */ |
