From 55782901d09167e591d45699cd5db48c5619e1e9 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 16 Apr 2019 11:15:42 -0700 Subject: Actually call gamepadshift_tick --- ports/atmel-samd/tick.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/atmel-samd/tick.c b/ports/atmel-samd/tick.c index 149347793..dde473375 100644 --- a/ports/atmel-samd/tick.c +++ b/ports/atmel-samd/tick.c @@ -29,10 +29,16 @@ #include "peripheral_clk_config.h" #include "supervisor/shared/autoreload.h" -#include "shared-module/gamepad/__init__.h" #include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/microcontroller/Processor.h" +#if CIRCUITPY_GAMEPAD +#include "shared-module/gamepad/__init__.h" +#endif + +#if CIRCUITPY_GAMEPADSHIFT +#include "shared-module/gamepadshift/__init__.h" +#endif // Global millisecond tick count volatile uint64_t ticks_ms = 0; @@ -51,7 +57,12 @@ void SysTick_Handler(void) { #endif #ifdef CIRCUITPY_GAMEPAD_TICKS if (!(ticks_ms & CIRCUITPY_GAMEPAD_TICKS)) { + #if CIRCUITPY_GAMEPAD gamepad_tick(); + #endif + #if CIRCUITPY_GAMEPADSHIFT + gamepadshift_tick(); + #endif } #endif } -- cgit v1.2.3