Actually call gamepadshift_tick

This commit is contained in:
Scott Shawcroft 2019-04-16 11:15:42 -07:00
parent 190bdf8117
commit 55782901d0
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -29,10 +29,16 @@
#include "peripheral_clk_config.h" #include "peripheral_clk_config.h"
#include "supervisor/shared/autoreload.h" #include "supervisor/shared/autoreload.h"
#include "shared-module/gamepad/__init__.h"
#include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/microcontroller/__init__.h"
#include "shared-bindings/microcontroller/Processor.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 // Global millisecond tick count
volatile uint64_t ticks_ms = 0; volatile uint64_t ticks_ms = 0;
@ -51,7 +57,12 @@ void SysTick_Handler(void) {
#endif #endif
#ifdef CIRCUITPY_GAMEPAD_TICKS #ifdef CIRCUITPY_GAMEPAD_TICKS
if (!(ticks_ms & CIRCUITPY_GAMEPAD_TICKS)) { if (!(ticks_ms & CIRCUITPY_GAMEPAD_TICKS)) {
#if CIRCUITPY_GAMEPAD
gamepad_tick(); gamepad_tick();
#endif
#if CIRCUITPY_GAMEPADSHIFT
gamepadshift_tick();
#endif
} }
#endif #endif
} }