fixed compile error and player2 support
[pcsx_rearmed.git] / plugins / dfinput / main.c
index 475ea07..f4a14fa 100644 (file)
@@ -15,6 +15,9 @@
 #include <windows.h>
 #endif
 
+#include <stdio.h>
+#include <string.h>
+
 #include "main.h"
 
 unsigned char CurPad, CurByte, CurCmd, CmdLen;
@@ -44,6 +47,7 @@ static int old_controller_type1 = -1, old_controller_type2 = -1;
                        PAD##n##_poll = PADpoll_guncon; \
                        guncon_init(); \
                        break; \
+                case PSE_PAD_TYPE_NEGCON: \
                case PSE_PAD_TYPE_GUN: \
                default: \
                        PAD##n##_startPoll = PAD##n##__startPoll; \
@@ -52,9 +56,16 @@ static int old_controller_type1 = -1, old_controller_type2 = -1;
                } \
        }
 
+//                case PSE_PAD_TYPE_NEGCON: \
+//                        PAD##n##_startPoll = PADstartPoll_negcon; \
+//                        PAD##n##_poll = PADpoll_negcon; \
+//                        negcon_init(); \
+//                        break; \
+
 void dfinput_activate(void)
 {
        PadDataS pad;
+       int i;
 
        PAD1_readPort1(&pad);
        select_pad(1);