diff options
author | Jasper van der Neut - Stulen | 2015-04-22 21:58:18 +0200 |
---|---|---|
committer | Jasper van der Neut - Stulen | 2015-04-22 21:58:18 +0200 |
commit | 554cc9eb7ebe48f574a6259f933d97a6862c2d72 (patch) | |
tree | c48f081b5b5395f6387f5c9b010ae4c50df3508f /frontend/plugin.c | |
parent | 998ff8f6009ca7a4d8db9039baf239a1931b5e63 (diff) | |
download | pcsx_rearmed-554cc9eb7ebe48f574a6259f933d97a6862c2d72.tar.gz pcsx_rearmed-554cc9eb7ebe48f574a6259f933d97a6862c2d72.tar.bz2 pcsx_rearmed-554cc9eb7ebe48f574a6259f933d97a6862c2d72.zip |
Poll analog inputs of pad2 when it's an analog pad.
Diffstat (limited to 'frontend/plugin.c')
-rw-r--r-- | frontend/plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c index d9eb04a..49ae1fe 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -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) { + pad->leftJoyX = in_a3[0]; + pad->leftJoyY = in_a3[1]; + pad->rightJoyX = in_a4[0]; + pad->rightJoyY = in_a4[1]; + } return 0; } |