aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/plugin.c')
-rw-r--r--frontend/plugin.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c
index d9eb04a..03fd47b 100644
--- a/frontend/plugin.c
+++ b/frontend/plugin.c
@@ -53,12 +53,12 @@ static long PADreadPort1(PadDataS *pad)
{
pad->controllerType = in_type1;
pad->buttonStatus = ~in_keystate;
- if (in_type1 == PSE_PAD_TYPE_ANALOGPAD) {
- pad->leftJoyX = in_a1[0];
- pad->leftJoyY = in_a1[1];
- pad->rightJoyX = in_a2[0];
- pad->rightJoyY = in_a2[1];
- }
+ if (in_type1 == PSE_PAD_TYPE_ANALOGPAD || in_type1 == PSE_PAD_TYPE_NEGCON) {
+ pad->leftJoyX = in_a1[0];
+ pad->leftJoyY = in_a1[1];
+ pad->rightJoyX = in_a2[0];
+ pad->rightJoyY = in_a2[1];
+ }
return 0;
}
@@ -66,6 +66,12 @@ static long PADreadPort2(PadDataS *pad)
{
pad->controllerType = in_type2;
pad->buttonStatus = ~in_keystate >> 16;
+ if (in_type2 == PSE_PAD_TYPE_ANALOGPAD || in_type2 == PSE_PAD_TYPE_NEGCON) {
+ pad->leftJoyX = in_a3[0];
+ pad->leftJoyY = in_a3[1];
+ pad->rightJoyX = in_a4[0];
+ pad->rightJoyY = in_a4[1];
+ }
return 0;
}