File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed
Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ extern const struct _mp_obj_module_t ustack_module;
567567 ERRNO_MODULE \
568568 FREQUENCYIO_MODULE \
569569 GAMEPAD_MODULE \
570- GAMEPADSHIFT_MODULE \
570+ GAMEPADSHIFT_MODULE \
571571 I2CSLAVE_MODULE \
572572 JSON_MODULE \
573573 MATH_MODULE \
Original file line number Diff line number Diff line change 2323 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424 * THE SOFTWARE.
2525 */
26+ #include "shared-bindings/gamepad/GamePad.h"
27+
2628#include "py/obj.h"
2729#include "py/runtime.h"
2830#include "py/mphal.h"
2931#include "py/gc.h"
3032#include "py/mpstate.h"
31- #include "shared-module/gamepad/__init__.h"
32- #include "shared-module/gamepad/GamePad.h"
33+ #include "shared-bindings/gamepad/__init__.h"
3334#include "shared-bindings/digitalio/DigitalInOut.h"
3435#include "supervisor/shared/translate.h"
35- #include "GamePad.h"
36- #include "__init__.h"
3736
3837
3938//| .. currentmodule:: gamepad
Original file line number Diff line number Diff line change 2828#include "py/mphal.h"
2929#include "py/gc.h"
3030#include "py/mpstate.h"
31- #include "shared-bindings/gamepad/__init__.h"
3231#include "shared-bindings/gamepadshift/GamePadShift.h"
3332#include "shared-bindings/gamepadshift/__init__.h"
34- #include "shared-module/gamepadshift/GamePadShift.h"
3533#include "supervisor/shared/translate.h"
3634
3735//| .. currentmodule:: gamepadshift
Original file line number Diff line number Diff line change 3434typedef struct {
3535 mp_obj_base_t base ;
3636 digitalio_digitalinout_obj_t * pins [8 ];
37+ volatile uint8_t last ;
3738 volatile uint8_t pressed ;
3839 uint8_t pulls ;
39- volatile uint8_t last ;
4040} gamepad_obj_t ;
4141
4242#endif // MICROPY_INCLUDED_GAMEPAD_GAMEPAD_H
You can’t perform that action at this time.
0 commit comments