File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2929#include "peripheral_clk_config.h"
3030
3131#include "supervisor/shared/autoreload.h"
32- #include "shared-module/gamepad/__init__.h"
3332#include "shared-bindings/microcontroller/__init__.h"
3433#include "shared-bindings/microcontroller/Processor.h"
3534
35+ #if CIRCUITPY_GAMEPAD
36+ #include "shared-module/gamepad/__init__.h"
37+ #endif
38+
39+ #if CIRCUITPY_GAMEPADSHIFT
40+ #include "shared-module/gamepadshift/__init__.h"
41+ #endif
3642// Global millisecond tick count
3743volatile uint64_t ticks_ms = 0 ;
3844
@@ -51,7 +57,12 @@ void SysTick_Handler(void) {
5157 #endif
5258 #ifdef CIRCUITPY_GAMEPAD_TICKS
5359 if (!(ticks_ms & CIRCUITPY_GAMEPAD_TICKS )) {
60+ #if CIRCUITPY_GAMEPAD
5461 gamepad_tick ();
62+ #endif
63+ #if CIRCUITPY_GAMEPADSHIFT
64+ gamepadshift_tick ();
65+ #endif
5566 }
5667 #endif
5768}
You can’t perform that action at this time.
0 commit comments