]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/joystick.cpp
Quick fix to make controller #1 work properly again. Controller #2 is disabled.
[virtualjaguar] / src / joystick.cpp
index dc498d02134d87aeaeca92acb5d01185e8ef3203..894301d9b99bccea78044dbe24988e347b88b00b 100644 (file)
@@ -325,6 +325,9 @@ void JoystickDone(void)
 
 uint8 JoystickReadByte(uint32 offset)
 {
+// For now, until we can fix the 2nd controller... :-P
+memset(joypad_1_buttons, 0, 21);
+
 #warning "No bounds checking done in JoystickReadByte!"
 //     extern bool hardwareTypeNTSC;
        offset &= 0x03;
@@ -377,6 +380,7 @@ uint8 JoystickReadByte(uint32 offset)
 //unused               int pad1Index = (joystick_ram[1] >> 4) & 0x0F;
 
 //WTF is this shit?
+#warning "!!! What is this? !!!"
                if (!(pad0Index & 0x01))
                {
                        if (joypad_0_buttons[BUTTON_PAUSE])