From 16589d7c051e7db90d6c10633fbee38fad017784 Mon Sep 17 00:00:00 2001 From: Deon Spengler Date: Mon, 30 Nov 2020 01:16:12 +0200 Subject: [PATCH] Enable keyboard to function as a gamepad as well --- keyboards/handwired/adept42/config.h | 4 ++++ keyboards/handwired/adept42/rules.mk | 1 + 2 files changed, 5 insertions(+) diff --git a/keyboards/handwired/adept42/config.h b/keyboards/handwired/adept42/config.h index 8fc586d164..0ba37be746 100644 --- a/keyboards/handwired/adept42/config.h +++ b/keyboards/handwired/adept42/config.h @@ -54,3 +54,7 @@ /* Releasing key without pressing another will send the original key */ #define RETRO_TAPPING + +/* Enable keyboard to funtion as a gamepad as well */ +#define JOYSTICK_BUTTON_COUNT 12 +#define JOYSTICK_AXES_COUNT 0 diff --git a/keyboards/handwired/adept42/rules.mk b/keyboards/handwired/adept42/rules.mk index 61ec737ced..6f3e1ecc50 100644 --- a/keyboards/handwired/adept42/rules.mk +++ b/keyboards/handwired/adept42/rules.mk @@ -31,3 +31,4 @@ BLUETOOTH_ENABLE = no SLEEP_LED_ENABLE = no SPLIT_KEYBOARD = yes LTO_ENABLE = yes +JOYSTICK_ENABLE = digital