fix x86 build, minor refactoring
[pcsx_rearmed.git] / frontend / plugin.c
index c83da72..ca359d7 100644 (file)
@@ -48,8 +48,8 @@ static uint8_t pad_byte;
 
 static unsigned char PADstartPoll(int pad) {
        pad_byte = 0;
 
 static unsigned char PADstartPoll(int pad) {
        pad_byte = 0;
-       pad_buf[2] = keystate;
-       pad_buf[3] = keystate >> 8;
+       pad_buf[2] = ~keystate;
+       pad_buf[3] = ~keystate >> 8;
 
        return 0xFF;
 }
 
        return 0xFF;
 }