Skip to content

Commit 1fb210b

Browse files
authored
Merge pull request #5491 from pypewpew/remove-gamepadshift
Remove gamepadshift module
2 parents 791064a + 06dd1ff commit 1fb210b

File tree

20 files changed

+3
-483
lines changed

20 files changed

+3
-483
lines changed

docs/porting.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ as a natural "TODO" list. An example minimal build list is shown below:
7979
# any port once their prerequisites in common-hal are complete.
8080
# Requires DigitalIO:
8181
CIRCUITPY_BITBANGIO = 0
82-
# Requires DigitalIO
83-
CIRCUITPY_GAMEPADSHIFT = 0
8482
# Requires neopixel_write or SPI (dotstar)
8583
CIRCUITPY_PIXELBUF = 0
8684
# Requires OS

docs/redirects.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ shared-bindings/framebufferio/FramebufferDisplay.rst shared-bindings/framebuffer
8080
shared-bindings/framebufferio/__init__.rst shared-bindings/framebufferio/
8181
shared-bindings/frequencyio/FrequencyIn.rst shared-bindings/frequencyio/#frequencyio.FrequencyIn
8282
shared-bindings/frequencyio/__init__.rst shared-bindings/frequencyio/
83-
shared-bindings/gamepad/GamePad.rst shared-bindings/gamepad/#gamepad.GamePad
84-
shared-bindings/gamepad/__init__.rst shared-bindings/gamepad/
85-
shared-bindings/gamepadshift/GamePadShift.rst shared-bindings/gamepadshift/#gamepadshift.GamePadShift
86-
shared-bindings/gamepadshift/__init__.rst shared-bindings/gamepadshift/
8783
shared-bindings/gnss/__init__.rst shared-bindings/gnss/
8884
shared-bindings/i2cperipheral/__init__.rst shared-bindings/i2cperipheral/
8985
shared-bindings/i2csecondary/__init__.rst shared-bindings/i2csecondary/

ports/atmel-samd/boards/openbook_m4/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ QSPI_FLASH_FILESYSTEM = 1
1010
EXTERNAL_FLASH_DEVICES = GD25Q16C
1111
LONGINT_IMPL = MPZ
1212

13-
CIRCUITPY_GAMEPADSHIFT = 1
13+
CIRCUITPY_KEYPAD = 1

ports/atmel-samd/boards/pybadge/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LONGINT_IMPL = MPZ
1212

1313
CIRCUITPY_AESIO = 0
1414
CIRCUITPY_FRAMEBUFFERIO = 0
15-
CIRCUITPY_GAMEPADSHIFT = 1
1615
CIRCUITPY_GIFIO = 0
16+
CIRCUITPY_KEYPAD = 1
1717
CIRCUITPY_STAGE = 1
1818

1919
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/pybadge

ports/atmel-samd/boards/pygamer/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LONGINT_IMPL = MPZ
1212

1313
CIRCUITPY_AESIO = 0
1414
CIRCUITPY_FRAMEBUFFERIO = 0
15-
CIRCUITPY_GAMEPADSHIFT = 1
1615
CIRCUITPY_GIFIO = 0
16+
CIRCUITPY_KEYPAD = 1
1717
CIRCUITPY_STAGE = 1
1818

1919
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/pygamer

ports/atmel-samd/supervisor/port.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@
122122

123123
#include "tusb.h"
124124

125-
#if CIRCUITPY_GAMEPADSHIFT
126-
#include "shared-module/gamepadshift/__init__.h"
127-
#endif
128125
#if CIRCUITPY_PEW
129126
#include "common-hal/_pew/PewPew.h"
130127
#endif
@@ -428,9 +425,6 @@ void reset_port(void) {
428425

429426
reset_gclks();
430427

431-
#if CIRCUITPY_GAMEPADSHIFT
432-
gamepadshift_reset();
433-
#endif
434428
#if CIRCUITPY_PEW
435429
pew_reset();
436430
#endif

ports/mimxrt10xx/supervisor/port.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646

4747
#include "supervisor/background_callback.h"
4848

49-
#if CIRCUITPY_GAMEPADSHIFT
50-
#include "shared-module/gamepadshift/__init__.h"
51-
#endif
5249
#if CIRCUITPY_PEW
5350
#include "shared-module/_pew/PewPew.h"
5451
#endif
@@ -294,9 +291,6 @@ void reset_port(void) {
294291
rtc_reset();
295292
#endif
296293

297-
#if CIRCUITPY_GAMEPADSHIFT
298-
gamepadshift_reset();
299-
#endif
300294
#if CIRCUITPY_PEW
301295
pew_reset();
302296
#endif

ports/stm/boards/swan_r5/mpconfigboard.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ CIRCUITPY_DISPLAYIO = 0
4949
# any port once their prerequisites in common-hal are complete.
5050
# Requires DigitalIO:
5151
CIRCUITPY_BITBANGIO = 1
52-
# Requires DigitalIO
53-
CIRCUITPY_GAMEPADSHIFT = 1
5452
# Requires neopixel_write or SPI (dotstar)
5553
CIRCUITPY_PIXELBUF = 0
5654
# Requires OS

py/circuitpy_defns.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ ifeq ($(CIRCUITPY_FUTURE),1)
181181
SRC_PATTERNS += __future__/%
182182
endif
183183

184-
ifeq ($(CIRCUITPY_GAMEPADSHIFT),1)
185-
SRC_PATTERNS += gamepadshift/%
186-
endif
187184
ifeq ($(CIRCUITPY_GETPASS),1)
188185
SRC_PATTERNS += getpass/%
189186
endif
@@ -553,8 +550,6 @@ SRC_SHARED_MODULE_ALL = \
553550
fontio/__init__.c \
554551
framebufferio/FramebufferDisplay.c \
555552
framebufferio/__init__.c \
556-
gamepadshift/GamePadShift.c \
557-
gamepadshift/__init__.c \
558553
getpass/__init__.c \
559554
gifio/__init__.c \
560555
gifio/GifWriter.c \

py/circuitpy_mpconfig.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,6 @@ typedef long mp_off_t;
311311
#define CIRCUITPY_DISPLAY_AREA_BUFFER_SIZE (0)
312312
#endif
313313

314-
#if CIRCUITPY_GAMEPADSHIFT
315-
// Scan gamepad every 32ms
316-
#define CIRCUITPY_GAMEPAD_TICKS 0x1f
317-
#define GAMEPAD_ROOT_POINTERS mp_obj_t gamepad_singleton;
318-
#else
319-
#define GAMEPAD_ROOT_POINTERS
320-
#endif
321-
322314
#if CIRCUITPY_KEYPAD
323315
#define KEYPAD_ROOT_POINTERS mp_obj_t keypad_scanners_linked_list;
324316
#else
@@ -419,7 +411,6 @@ struct _supervisor_allocation_node;
419411
#define CIRCUITPY_COMMON_ROOT_POINTERS \
420412
FLASH_ROOT_POINTERS \
421413
KEYPAD_ROOT_POINTERS \
422-
GAMEPAD_ROOT_POINTERS \
423414
BOARD_UART_ROOT_POINTER \
424415
WIFI_MONITOR_ROOT_POINTERS \
425416
MEMORYMONITOR_ROOT_POINTERS \

py/circuitpy_mpconfig.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ CFLAGS += -DCIRCUITPY_FREQUENCYIO=$(CIRCUITPY_FREQUENCYIO)
227227
CIRCUITPY_FUTURE ?= 1
228228
CFLAGS += -DCIRCUITPY_FUTURE=$(CIRCUITPY_FUTURE)
229229

230-
CIRCUITPY_GAMEPADSHIFT ?= 0
231-
CFLAGS += -DCIRCUITPY_GAMEPADSHIFT=$(CIRCUITPY_GAMEPADSHIFT)
232-
233230
CIRCUITPY_GETPASS ?= $(CIRCUITPY_FULL_BUILD)
234231
CFLAGS += -DCIRCUITPY_GETPASS=$(CIRCUITPY_GETPASS)
235232

shared-bindings/gamepadshift/GamePadShift.c

Lines changed: 0 additions & 123 deletions
This file was deleted.

shared-bindings/gamepadshift/GamePadShift.h

Lines changed: 0 additions & 42 deletions
This file was deleted.

shared-bindings/gamepadshift/__init__.c

Lines changed: 0 additions & 51 deletions
This file was deleted.

shared-bindings/gamepadshift/__init__.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)