aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfinput/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfinput/main.c')
-rw-r--r--plugins/dfinput/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/dfinput/main.c b/plugins/dfinput/main.c
index 475ea07..f4a14fa 100644
--- a/plugins/dfinput/main.c
+++ b/plugins/dfinput/main.c
@@ -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);