Skip to content

Commit 4fbbf16

Browse files
authored
Update configs that use focus mode (#1357)
* Update configs that use focus mode Focus mode must be updated to `#define GPIO_PIN_XX GpioAction::SUSTAIN_FOCUS_MODE` * Update CMakeLists.txt * Update CMakeLists.txt
1 parent 4569ef3 commit 4fbbf16

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

configs/MavercadeRev2/BoardConfig.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#define GPIO_PIN_13 GpioAction::BUTTON_PRESS_R3 // R3 | RS | RS | R3 | 12 | RS |
3333
#define GPIO_PIN_22 GpioAction::BUTTON_PRESS_A1 // A1 | Guide | Home | PS | 13 | ~ |
3434
#define GPIO_PIN_21 GpioAction::BUTTON_PRESS_A2 // A2 | ~ | Capture | ~ | 14 | ~ |
35+
#define GPIO_PIN_29 GpioAction::SUSTAIN_FOCUS_MODE
3536

3637
// Setting GPIO pins to assigned by add-on
3738
//
@@ -40,7 +41,6 @@
4041
#define GPIO_PIN_03 GpioAction::ASSIGNED_TO_ADDON
4142
#define GPIO_PIN_04 GpioAction::ASSIGNED_TO_ADDON
4243
#define GPIO_PIN_05 GpioAction::ASSIGNED_TO_ADDON
43-
#define GPIO_PIN_29 GpioAction::ASSIGNED_TO_ADDON
4444

4545
// Keyboard Mapping Configuration
4646
// // GP2040 | Xinput | Switch | PS3/4/5 | Dinput | Arcade |
@@ -222,7 +222,6 @@
222222

223223
#define FOCUS_MODE_ENABLED 1
224224
#define FOCUS_MODE_BUTTON_MASK GAMEPAD_MASK_S1 | GAMEPAD_MASK_S2 | GAMEPAD_MASK_A1 | GAMEPAD_MASK_A2
225-
#define FOCUS_MODE_PIN 29
226225
#define FOCUS_MODE_BUTTON_LOCK_ENABLED 1
227226

228227
#define DEFAULT_SPLASH \

configs/OpenCore0/BoardConfig.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
#define GPIO_PIN_05 GpioAction::BUTTON_PRESS_A1 // A1 | Guide | Home | PS | 13 | ~ |
3333
#define GPIO_PIN_04 GpioAction::BUTTON_PRESS_A2 // A2 | ~ | Capture | ~ | 14 | ~ |
3434
#define GPIO_PIN_26 GpioAction::BUTTON_PRESS_FN // FN
35+
#define GPIO_PIN_21 GpioAction::SUSTAIN_FOCUS_MODE
3536

3637
// Setting GPIO pins to assigned by add-on
3738
//
3839
#define GPIO_PIN_00 GpioAction::ASSIGNED_TO_ADDON
3940
#define GPIO_PIN_01 GpioAction::ASSIGNED_TO_ADDON
4041
#define GPIO_PIN_08 GpioAction::ASSIGNED_TO_ADDON
41-
#define GPIO_PIN_21 GpioAction::ASSIGNED_TO_ADDON
4242
#define GPIO_PIN_28 GpioAction::ASSIGNED_TO_ADDON
4343
#define GPIO_PIN_29 GpioAction::ASSIGNED_TO_ADDON
4444

@@ -162,7 +162,6 @@
162162

163163
#define FOCUS_MODE_ENABLED 1
164164
#define FOCUS_MODE_BUTTON_MASK GAMEPAD_MASK_S1 | GAMEPAD_MASK_S2 | GAMEPAD_MASK_A1 | GAMEPAD_MASK_A2 | GAMEPAD_MASK_L3 | GAMEPAD_MASK_R3
165-
#define FOCUS_MODE_PIN 21
166165
#define FOCUS_MODE_BUTTON_LOCK_ENABLED 1
167166

168167

configs/OpenCore0WASD/BoardConfig.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
#define GPIO_PIN_05 GpioAction::BUTTON_PRESS_A1 // A1 | Guide | Home | PS | 13 | ~ |
3333
#define GPIO_PIN_04 GpioAction::BUTTON_PRESS_A2 // A2 | ~ | Capture | ~ | 14 | ~ |
3434
#define GPIO_PIN_13 GpioAction::BUTTON_PRESS_UP // UP | UP | UP | UP | UP | UP |
35+
#define GPIO_PIN_22 GpioAction::SUSTAIN_FOCUS_MODE
3536

3637
// Setting GPIO pins to assigned by add-on
3738
//
3839
#define GPIO_PIN_00 GpioAction::ASSIGNED_TO_ADDON
3940
#define GPIO_PIN_01 GpioAction::ASSIGNED_TO_ADDON
4041
#define GPIO_PIN_08 GpioAction::ASSIGNED_TO_ADDON
41-
#define GPIO_PIN_22 GpioAction::ASSIGNED_TO_ADDON
4242
#define GPIO_PIN_28 GpioAction::ASSIGNED_TO_ADDON
4343
#define GPIO_PIN_29 GpioAction::ASSIGNED_TO_ADDON
4444

@@ -158,7 +158,6 @@
158158

159159
#define FOCUS_MODE_ENABLED 1
160160
#define FOCUS_MODE_BUTTON_MASK GAMEPAD_MASK_S1 | GAMEPAD_MASK_S2 | GAMEPAD_MASK_A1 | GAMEPAD_MASK_A2 | GAMEPAD_MASK_L3 | GAMEPAD_MASK_R3
161-
#define FOCUS_MODE_PIN 22
162161
#define FOCUS_MODE_BUTTON_LOCK_ENABLED 1
163162

164163
#endif

0 commit comments

Comments
 (0)