From 4c08b9e7dd350a48fc3e0515913d6ccc8b15e5ae Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 9 Aug 2011 01:16:59 +0300 Subject: add guncon support a bit basic but works --- frontend/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/plugin.c') diff --git a/frontend/plugin.c b/frontend/plugin.c index 7b0d301..fa4cf21 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -43,9 +43,9 @@ extern void SPUplayCDDAchannel(short *, int); /* PAD */ static long PADreadPort1(PadDataS *pad) { - pad->controllerType = in_type; + pad->controllerType = in_type1; pad->buttonStatus = ~in_keystate; - if (in_type == PSE_PAD_TYPE_ANALOGPAD) { + if (in_type1 == PSE_PAD_TYPE_ANALOGPAD) { pad->leftJoyX = in_a1[0]; pad->leftJoyY = in_a1[1]; pad->rightJoyX = in_a2[0]; @@ -56,7 +56,7 @@ static long PADreadPort1(PadDataS *pad) static long PADreadPort2(PadDataS *pad) { - pad->controllerType = PSE_PAD_TYPE_STANDARD; + pad->controllerType = in_type2; pad->buttonStatus = ~in_keystate >> 16; return 0; } -- cgit v1.2.3