From 54e5eb54c052c655ab11c8f8677209327f1f1e36 Mon Sep 17 00:00:00 2001 From: MegaBitmap <93689649+MegaBitmap@users.noreply.github.com> Date: Thu, 1 Aug 2024 20:15:23 -0700 Subject: [PATCH] add ASSIGNED_TO_ADDON and remove unused button --- configs/PXPGamepad/BoardConfig.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configs/PXPGamepad/BoardConfig.h b/configs/PXPGamepad/BoardConfig.h index 770583032..f5e3f5c8b 100644 --- a/configs/PXPGamepad/BoardConfig.h +++ b/configs/PXPGamepad/BoardConfig.h @@ -29,8 +29,6 @@ #define GPIO_PIN_10 GpioAction::BUTTON_PRESS_S2 // S2 | Start | Plus | Start | 10 | Start | #define GPIO_PIN_07 GpioAction::BUTTON_PRESS_L3 // L3 | LS | LS | L3 | 11 | LS | #define GPIO_PIN_08 GpioAction::BUTTON_PRESS_R3 // R3 | RS | RS | R3 | 12 | RS | -#define GPIO_PIN_24 GpioAction::BUTTON_PRESS_A1 // A1 | Guide | Home | PS | 13 | ~ | -#define GPIO_PIN_25 GpioAction::BUTTON_PRESS_A2 // A2 | ~ | Capture | ~ | 14 | ~ | // Keyboard Mapping Configuration // // GP2040 | Xinput | Switch | PS3/4/5 | Dinput | Arcade | @@ -54,6 +52,13 @@ #define KEY_BUTTON_A2 HID_KEY_F2 // A2 | ~ | Capture | ~ | 14 | ~ | #define KEY_BUTTON_FN -1 // Hotkey Function | +// Setting GPIO pins to assigned by add-on +// +#define GPIO_PIN_26 GpioAction::ASSIGNED_TO_ADDON +#define GPIO_PIN_27 GpioAction::ASSIGNED_TO_ADDON +#define GPIO_PIN_28 GpioAction::ASSIGNED_TO_ADDON +#define GPIO_PIN_29 GpioAction::ASSIGNED_TO_ADDON + // Analog Configuration // #define ANALOG_INPUT_ENABLED 1