Hello all! First of all, sorry for my english. I'm not a native speaker.
Some games I really like (like "Marvel Ultimate Alliance" and "God Hand") are only playable if you can use Analog Controls and I don't have a Pad (broken
...). So I modified the ZeroPad plugin so I could use the keyboard as a Analog Control.
Since I did it only for my personal use, the code is very messy and I didn't bother to add these buttons to the configuration file: I just hard-coded them on the plugin.
This was almost a year ago. I kept telling myself I would make it the right way, with a configuration window and all that, and post it here. But I just procrastinate and done nothing. I'm not sure if it's worth the trouble since I don't know if people are going to use it.
So I thought "better this way than nothing to the people out there. If I couldn't program, I would like to have it even in this state".
If a lot of people start using I will do it the proper way and maybe, who knows, it gets merged in the main project.
Here is how to use it:
Download the code here:
http://www.linux.ime.usp.br/~lenin/zeropad.tar.bz2
Put it inside the plugin dir in the pcsx2 dir.
Then do the following commands:
(Or just uncompress it, run the build.sh file and copy the result through the file manager)
There you go! Done!
In this version the left analog Control is configured to the directionals arrows and the right to Home, Delete, End, Page Down.
To modify this settings, open the file zeropad.h
In the line 111 you will see something like this:
These are the button codes. KEY_PAD_RY_UP is the Up button of the right controller. KEY_PAD_LX_LEFT is the Left button of the left controller, etc.
DEF_VALUE is the strength you press the control. This value (32766) is the maximum. If you want a lighter touch, decrease it.
To discover the key code of some key you can do the following procedure:
Open the file ini/zeropad.ini. Save a copy of it.
Open PCSX2 and put the key you want in some other button.
Compare the new ini/zeropad.ini with the old one and see what changed.
Put the code that changed in the proper location in zeropad.h
Repeat until done
After any change in zeropad.h, don't forget to build and copy again.
Well, that is it. I know it's ugly, that's why I didn't wanted to release it, but as I said, better than nothing.
Any problems, contact me
Farewell
Some games I really like (like "Marvel Ultimate Alliance" and "God Hand") are only playable if you can use Analog Controls and I don't have a Pad (broken

Since I did it only for my personal use, the code is very messy and I didn't bother to add these buttons to the configuration file: I just hard-coded them on the plugin.
This was almost a year ago. I kept telling myself I would make it the right way, with a configuration window and all that, and post it here. But I just procrastinate and done nothing. I'm not sure if it's worth the trouble since I don't know if people are going to use it.
So I thought "better this way than nothing to the people out there. If I couldn't program, I would like to have it even in this state".
If a lot of people start using I will do it the proper way and maybe, who knows, it gets merged in the main project.
Here is how to use it:
Download the code here:
http://www.linux.ime.usp.br/~lenin/zeropad.tar.bz2
Put it inside the plugin dir in the pcsx2 dir.
Then do the following commands:
Code:
tar -xvjf zeropad.tar.bz2
cd zeropad
sh build.sh
cp libZeroPAD.so.* ..
There you go! Done!
In this version the left analog Control is configured to the directionals arrows and the right to Home, Delete, End, Page Down.
To modify this settings, open the file zeropad.h
In the line 111 you will see something like this:
Code:
#define KEY_PAD_RY_UP 0xff50
#define KEY_PAD_RY_DOWN 0xff57
#define KEY_PAD_LY_UP 0xff52
#define KEY_PAD_LY_DOWN 0xff54
#define KEY_PAD_RX_LEFT 0xffff
#define KEY_PAD_RX_RIGHT 0xff56
#define KEY_PAD_LX_LEFT 0xff51
#define KEY_PAD_LX_RIGHT 0xff53
#define DEF_VALUE 32766
These are the button codes. KEY_PAD_RY_UP is the Up button of the right controller. KEY_PAD_LX_LEFT is the Left button of the left controller, etc.
DEF_VALUE is the strength you press the control. This value (32766) is the maximum. If you want a lighter touch, decrease it.
To discover the key code of some key you can do the following procedure:
Open the file ini/zeropad.ini. Save a copy of it.
Open PCSX2 and put the key you want in some other button.
Compare the new ini/zeropad.ini with the old one and see what changed.
Put the code that changed in the proper location in zeropad.h
Repeat until done
After any change in zeropad.h, don't forget to build and copy again.
Well, that is it. I know it's ugly, that's why I didn't wanted to release it, but as I said, better than nothing.
Any problems, contact me
Farewell