From e8d96071f1a0b34b58647372b9d9976c5e397aba Mon Sep 17 00:00:00 2001 From: phaseIV Date: Mon, 16 Nov 2015 14:24:33 +0100 Subject: initial neGcon controller support --- plugins/dfinput/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/dfinput') 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 #endif +#include +#include + #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); -- cgit v1.2.3