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 29
29
#include "peripheral_clk_config.h"
30
30
31
31
#include "supervisor/shared/autoreload.h"
32
- #include "shared-module/gamepad/__init__.h"
33
32
#include "shared-bindings/microcontroller/__init__.h"
34
33
#include "shared-bindings/microcontroller/Processor.h"
35
34
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
36
42
// Global millisecond tick count
37
43
volatile uint64_t ticks_ms = 0 ;
38
44
@@ -51,7 +57,12 @@ void SysTick_Handler(void) {
51
57
#endif
52
58
#ifdef CIRCUITPY_GAMEPAD_TICKS
53
59
if (!(ticks_ms & CIRCUITPY_GAMEPAD_TICKS )) {
60
+ #if CIRCUITPY_GAMEPAD
54
61
gamepad_tick ();
62
+ #endif
63
+ #if CIRCUITPY_GAMEPADSHIFT
64
+ gamepadshift_tick ();
65
+ #endif
55
66
}
56
67
#endif
57
68
}
You can’t perform that action at this time.
0 commit comments