diff options
author | notaz | 2011-08-09 01:16:59 +0300 |
---|---|---|
committer | notaz | 2011-08-13 00:56:33 +0300 |
commit | 4c08b9e7dd350a48fc3e0515913d6ccc8b15e5ae (patch) | |
tree | 22f29a06fda180d8269878b3cdb413044a5e351e /frontend/plugin.c | |
parent | 19e57cbf170d1ce49f00097f3cc3a4ed96d77374 (diff) | |
download | pcsx_rearmed-4c08b9e7dd350a48fc3e0515913d6ccc8b15e5ae.tar.gz pcsx_rearmed-4c08b9e7dd350a48fc3e0515913d6ccc8b15e5ae.tar.bz2 pcsx_rearmed-4c08b9e7dd350a48fc3e0515913d6ccc8b15e5ae.zip |
add guncon support
a bit basic but works
Diffstat (limited to 'frontend/plugin.c')
-rw-r--r-- | frontend/plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |