Skip to content

Commit 1355dc8

Browse files
committed
foo
1 parent 890d374 commit 1355dc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GameControllers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ class GameCubeController : public GameController {
176176
else
177177
return v;
178178
}
179+
public:
179180
void sendBits(uint32_t data, uint8_t bits);
180181
bool receiveBits(void* data0, uint32_t bits);
181-
public:
182182
bool begin(void);
183183
bool read(GameControllerData_t* data);
184184
bool readWithRumble(GameControllerData_t* data, bool rumble);

src/gamecube.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ bool GameCubeController::readWithRumble(GameCubeData_t* data, bool rumble) {
172172
nvic_globalirq_disable();
173173
sendBits(0b000000001l, 9);
174174
nvic_globalirq_enable();
175-
delayMicroseconds(400);
175+
delayMicroseconds(410);
176176
fails = 0;
177177
}
178178
nvic_globalirq_disable();
@@ -184,7 +184,7 @@ bool GameCubeController::readWithRumble(GameCubeData_t* data, bool rumble) {
184184

185185
bool GameCubeController::readWithRumble(GameControllerData_t* data, bool rumble) {
186186
bool success = readWithRumble(&gcData, rumble);
187-
if (success && 0 == (gcData.buttons & 0x80) && (gcData.buttons & 0x8000) ) {
187+
if (success && 0 == (gcData.buttons & 0x80) /*&& (gcData.buttons & 0x8000)*/ ) {
188188
data->device = CONTROLLER_GAMECUBE;
189189
data->buttons = gcData.buttons;
190190
data->joystickX = rescale(gcData.joystickX);

0 commit comments

Comments
 (0)