Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing joystick.h include #22946

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion keyboards/handwired/battleship_gamepad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

/* joystick configuration */
#define JOYSTICK_BUTTON_COUNT 25
#define JOYSTICK_AXIS_COUNT 2
#define JOYSTICK_AXIS_RESOLUTION 10

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
Expand Down
1 change: 0 additions & 1 deletion keyboards/handwired/onekey/keymaps/joystick/config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma once

#define JOYSTICK_AXIS_COUNT 2
#define JOYSTICK_BUTTON_COUNT 1
7 changes: 1 addition & 6 deletions keyboards/lime/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

#pragma once

/* joystick support */
#ifdef JOYSTICK_ENABLE
# define JOYSTICK_AXIS_COUNT 2
# define JOYSTICK_BUTTON_COUNT 1
# define JOYSTICK_AXIS_RESOLUTION 8
#endif
#define JOYSTICK_BUTTON_COUNT 1

#define SPLIT_USB_DETECT
4 changes: 4 additions & 0 deletions tmk_core/protocol/report.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "keycode.h"
#include "util.h"

#ifdef JOYSTICK_ENABLE
# include "joystick.h"
#endif

// clang-format off

/* HID report IDs */
Expand Down
Loading