Deon (the author of ppjoy) came through! He is amazing! Wrote us a nice app that uses the DIrectinput API to capture the keyboard strokes and pass them on to PPJoy. It's fully configurable (not so easily, though, as you need the decimal value of the key) and in my testing, works great. The one problem, though, is each instance of the prog only supports 1 joystick. A workaround is to just launch the app 4 times, but I emailed Deon about it and hopefully he can add multiple joystick functionality to the program. UPDATE: In the zip is a batch file that will run PPjoyKEY 4 times, each time specifying a different INI file. Multi-joy support is too much more to ask from Deon. Hopefully, though, he will figure out how to minimize the programs to the system tray, so there will be a little less clutter. Thanks again, Deon, very cool. It took me a little figuring to get it working, so I zipped up all the necessary files and included instructions
Enjoy! AND THANKS DEON!!!
---------------------------------------
Keyboard to Joystick emulation
First off, this would not be possible without the amazing work of Deon van der Westhuysen. THANK YOU THANK YOU THANK YOU!
This procedure relies on two programs, both written by Deon. The first is PPjoy. This application takes input over the lpt port and outputs it as a windows joystick. It can, however, also be run in virtual mode in which it instead accepts input through ioctl calls. Therefore, the second program is PPjoyKEY which takes keystrokes as input and outputs to ppjoy through the aforementioned ioctl process.
Instructions:
1. Run the setup program in the PPjoy folder
2. Launch the PPjoy configurator
3. Click "add"
4. Select "virtual port" from the "parralel port" dropdown
5. Select the controller number from the controller number dropdown.
6. Click "add"
Repeat for each controller.
7. Run "key2joy.bat" from the main folder.
This is a little batch file I wrote that simply launches PPjoyKEY 4 times, each time specifying a different INI file. I created the INI files to ease the installation procedure. The keys are mapped as follows:
UP DOWN LEFT RIGHT B1 B2 B3 --BINGO! Either that, or I was attempting to say "before" but it was too many letters to type-- B5 B6 B7 B8
Joy1 1 2 3 4 5 6 7 8 9 0 - =
Joy2 q w e r t y u i o p [ ]
Joy3 a s d f g h j k l ; '
Joy4 z x c v b n m , . /
You can however specify your own configuration by using the decimal equivalent of the key (ESC is 1 and the increase accross row).
Have fun!
- Mike Cobelli
-------------------------------------------------------------------------
Since it won't fit on the forum, You can get all the files from my website
http://hostfreedom.com/key2joy.zip