X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfinput%2Fmain.c;h=4204b86ff19c77f0f5e40f6dd2cebc70b0260ac1;hb=9766e77ddec3157cbf8b7da407b99f47467a8f72;hp=475ea073a1d8227cc471b348cdd0e5a9243dacc7;hpb=cebb70f24ab54693b12aaa27b85a52689e26e1ff;p=pcsx_rearmed.git diff --git a/plugins/dfinput/main.c b/plugins/dfinput/main.c index 475ea073..4204b86f 100644 --- a/plugins/dfinput/main.c +++ b/plugins/dfinput/main.c @@ -44,6 +44,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,13 +53,19 @@ static int old_controller_type1 = -1, old_controller_type2 = -1; } \ } + void dfinput_activate(void) { + #ifndef HAVE_LIBRETRO PadDataS pad; + pad.portMultitap = -1; + pad.requestPadIndex = 0; PAD1_readPort1(&pad); select_pad(1); + pad.requestPadIndex = 1; PAD2_readPort2(&pad); select_pad(2); + #endif }