here is the solution-
1- must use latest version of mamewah beta cos it has pre and post emulator settings for this thing to work.
2 -if using XP home edition download pskill.exe, XP pro has it already installed.
3- create bat file for pskill.exe , and name it whatever you like.
bat file should look like this or wherever your pskill program is -
C:\pskill -t ppjoykey.exe
4- download Parallel Port joystick and configure it with 4 axis and whatever butttons you like.it must be configured this way or virtua tennis wont work.
Then start ppjoytokey and make the configurations for your player 2 controls and save it and name it whatever.
By the way by installing ppj ,virtua tennis picks it up for player 2 to be operational.
5- create bat file for it to start ppj with the player2 config.
bat file should look like this -
@ECHO OFF
C:
cd C:\Program Files\joytokey\
ppjoykey.exe C:\Program Files\joytokey\player2.ini
cls
exit
6- mamewah ini for my pc app
### Pc Games.ini (mamewah v1.62) ###
emulator_title Pc
### List Generation Settings ###
rom_path c:\arcade
rom_extension lnk
dat_file
nms_file
catver_ini_file
list_generation_method rom_folder
### Execution Settings ###
pre_emulator_app_commandlines C:\arcade\ppjoykey.bat {nodosbox}{safelaunch}{nowait}{autoquit}
emulator_commandline PC "[rompath]\[name].[romext]"{dosbox}{safelaunch}
post_emulator_app_commandlines C:\arcade\pskill.bat {nodosbox}{safelaunch}{nowait}{autoquit}
general_app_commandlines
### Artwork Locations ###
artwork_image_paths C:\arcade\images
movie_preview_path
movie_artwork_no 1
### Screen-Saver Settings ###
enable_music_in_screensaver 1
select_random_game 0
saver_type slideshow
movie_path
movie_fullscreen 1
quit_delay 30
saver_commandline
### Additional Settings ###
music_path
lcd_display_file_path
### Settings used by MAMEWAH ###
current_list 0
So the pre_emulator_app_commandline starts the bat for ppjoykey with my player 2 config so that when l start virtua tennis is activate ppjoykey before it.
Then when l shut the game down l dont want to see the ppjoykey box active so thats when pskill comes into action in the post_emulators_app_commandline and activate the bat file to kill ppjoykey.
trust me this works and its the only way , l have done my homework . thats if you want to use it with mamewah.
enjoy.
by the way if you want the full Parallel Port Joystick program just let me know ,and l will email it to you.