diff options
author | phaseIV | 2015-11-16 14:24:33 +0100 |
---|---|---|
committer | phaseIV | 2015-11-16 14:24:33 +0100 |
commit | e8d96071f1a0b34b58647372b9d9976c5e397aba (patch) | |
tree | ac0a8e73016ee57d9b492048cb0b7eaf641686d0 /frontend/plugin.c | |
parent | ce36c10b348009c13282048540d6d9c553bbcc96 (diff) | |
download | pcsx_rearmed-e8d96071f1a0b34b58647372b9d9976c5e397aba.tar.gz pcsx_rearmed-e8d96071f1a0b34b58647372b9d9976c5e397aba.tar.bz2 pcsx_rearmed-e8d96071f1a0b34b58647372b9d9976c5e397aba.zip |
initial neGcon controller support
Diffstat (limited to 'frontend/plugin.c')
-rw-r--r-- | frontend/plugin.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c index 49ae1fe..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,7 +66,7 @@ static long PADreadPort2(PadDataS *pad) { pad->controllerType = in_type2; pad->buttonStatus = ~in_keystate >> 16; - if (in_type2 == PSE_PAD_TYPE_ANALOGPAD) { + 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]; |