Emuforums.com

Go Back   Emuforums.com > PS2 Emulation > PS2 Plugin Questions & Troubleshooting
About Us Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old January 12th, 2008   #141 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
I noticed SDL only encapsulates WinMM apis for Win32. I'm thinking about writing a lib which would use UsbHidApi.dll, which makes HID communications simpler, to get a better plugin. I found the protocol of my joystick by using a UsbHidApi demo, from packet values. Here is the protocol of my joystick, Logitech Cordless Rumblepad 2 :
Code:
Bit |Val|Expl.
0   |01 |REport ID
1   |80 |Left X (axis 1)
2   |7f |Left Y (axis 2)
3   |7f |Right X (axis 3)
4   |80 |Right Y (axis 4)
5   |08 |Hi : buttons 0-4, Lo : POV
6   |00 |Buttons 5-12
7   |02 |Mode : 02 : normal, 0a : reverse POV and left axis

note : value can vary

POV :
0 : up
1 : up-right
2 : right
3 : down-right
4 : down
5 : down-left
6 : left
7 : up-left
8 : centered
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old January 13th, 2008   #142 (permalink)
Registered User
 
Join Date: Jan 2008
Location: /dev/random
Posts: 42
Hi.
I'm really looking forward to your linux port
I'm just another 'keyboard' guy, so please, could you just tell me if linux
port will support keyboard bindings for analog controls ?
Just curios, what was your 'fopen()' problem ?

Last edited by rasta_freak; January 13th, 2008 at 18:25.
rasta_freak is offline   Reply With Quote
Old January 14th, 2008   #143 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
yes, the linux port will support keyboard for analogs, each analog direction is considered as a button, with pressure info.
I could not open my config file, but now it is solved.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old January 15th, 2008   #144 (permalink)
Registered User
 
Join Date: Jan 2008
Location: /dev/random
Posts: 42
Great !

BTW - about fopen() - don't be shy, I'm programmer myself
Well, i guess you have better things to do than discuss that now...
Anyway, I have some linux programming experience, so if you're stuck at any point, I'm offering my help too (have seen other "offers" themselves ).
I'm not saying I will solve it, but maybe I could be of some help to someone
rasta_freak is offline   Reply With Quote
Old January 16th, 2008   #145 (permalink)
Registered User
 
Join Date: Apr 2006
Location: Verona
Posts: 16
When i try to set the keys the entire emu crashes, why?
Xargon is offline   Reply With Quote
Old January 16th, 2008   #146 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
don't know.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 11th, 2008   #147 (permalink)
Registered User
 
Join Date: Feb 2008
Location: USA
Posts: 64
so i got to the config screen but soon as i hit a button like X, or down or anything it immediatly fills it with Joy1_Axis3_Min. And no buttons on my controller will reg there???
__________________
Specs:
Intel C2D 6400 @ 3.0GHz
2 GB ram @ 4,4,4
x1900gt stock
vista business 32bit
keypox is offline   Reply With Quote
Old February 14th, 2008   #148 (permalink)
WhiteShadow
 
Join Date: Feb 2008
Location: Seoul
Posts: 4
it's doesn't Wrok.........

select MegaPad v 1.3.3 plugin and test

"error 1746190400 Whitele loading SDL"

SDL.dll (From v1.2.0) file is in Root Folder

What's Wromg ?



Where is SDL.dll ?
leeminwo is offline   Reply With Quote
Old February 15th, 2008   #149 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
keypox : use a standard joystick.
leeminwo : strange.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 22nd, 2008   #150 (permalink)
Registered User
 
sfirmans's Avatar
 
Join Date: Feb 2008
Location: Indonesia
Posts: 1
oy, how to playing ps2 emulator
sfirmans is offline   Reply With Quote
Old February 29th, 2008   #151 (permalink)
Registered User
 
Join Date: Apr 2006
Location: Sweden
Posts: 14
Something is really strange here, the SDL.dll don't come with the 1.3.3 ver, or the pcsx2 0.9.4

Last edited by vicZor; February 29th, 2008 at 16:02.
vicZor is offline   Reply With Quote
Old March 1st, 2008   #152 (permalink)
Registered User
 
Join Date: Feb 2008
Location: london
Posts: 63
i keep gettin 'pcsx2 has stopped working' and then pcsx2 crashes and closes i used the latest version and no matter wat i do it error but when i test it says the program should work fine
chibievil is offline   Reply With Quote
Old March 5th, 2008   #153 (permalink)
Registered User
 
Join Date: Mar 2008
Location: Brazil
Posts: 1
thx man ... testing
RogerGamesRG is offline   Reply With Quote
Old March 5th, 2008   #154 (permalink)
Registered User
 
Join Date: Mar 2008
Location: England
Posts: 1
I get an error message when I go to test. it says "Error 1746190400 while loading SDL". I have the SDL in the root directory and the megapad.dll and included folder in the plugins folder.

Odd thing was it was working before, but I couldn't configure the analog stick properly. Any idea on what I'm doing wrong?
akira181 is offline   Reply With Quote
Old March 8th, 2008   #155 (permalink)
Registered User
 
Join Date: Mar 2008
Location: uk
Posts: 1
OK i got MegaPad_ver1.3.3.zip

but there's no SDL.dll file there!!!!!!!!!!!!!!!!!!!!!!

OK, I got MegaPad_ver1.3.0.zip, placed SDL.dll in the main folder and so far it works great with my Tesun PS2 replica controller!

Great plugin, thanks. It's fixed my controller lag problem in Resident evil code veronica which used to carry on shooting when I stopped pressing X and loads of other annoyances!

Thanks again

Last edited by oli_ramsay; March 8th, 2008 at 19:47. Reason: Automerged Doublepost
oli_ramsay is offline   Reply With Quote
Old March 10th, 2008   #156 (permalink)
Registered User
 
Join Date: Mar 2008
Location: Atlanta, GA, USA, Earth.
Posts: 7
Quote:
Originally Posted by NHervé View Post
I noticed SDL only encapsulates WinMM apis for Win32. I'm thinking about writing a lib which would use UsbHidApi.dll, which makes HID communications simpler, to get a better plugin. I found the protocol of my joystick by using a UsbHidApi demo, from packet values. Here is the protocol of my joystick, Logitech Cordless Rumblepad 2 :
Code:
Bit |Val|Expl.
0   |01 |REport ID
1   |80 |Left X (axis 1)
2   |7f |Left Y (axis 2)
3   |7f |Right X (axis 3)
4   |80 |Right Y (axis 4)
5   |08 |Hi : buttons 0-4, Lo : POV
6   |00 |Buttons 5-12
7   |02 |Mode : 02 : normal, 0a : reverse POV and left axis

note : value can vary

POV :
0 : up
1 : up-right
2 : right
3 : down-right
4 : down
5 : down-left
6 : left
7 : up-left
8 : centered
so, in trying to make zeropad work, i'm playing with these values, any guess as to how these correllate to the Zeropad.ini values, particularly the axis mappings? i'm waiting on the edge of my seat for MegaPad Linux, but i want to see if i can get it to go on its own....
paulderol is offline   Reply With Quote
Old March 18th, 2008   #157 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
The new version of Megapad, v1.4.0, will be entirely (or almost) rewritten and will feature native Wiimote support without GlovePIE. I don't know if it will still use SDL for normal joysticks, I think yes.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old April 6th, 2008   #158 (permalink)
Registered User
 
Join Date: Feb 2007
Location: Bordeaux (France)
Posts: 49
hello where is the sdl.dll?
i download the last megapad, but not sdl.dll??
Yassine is offline   Reply With Quote
Old April 6th, 2008   #159 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
download one of the first zips or google "sdl".
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old April 6th, 2008   #160 (permalink)
Registered User
 
Join Date: Feb 2007
Location: Bordeaux (France)
Posts: 49
on the zip don have sdl.dll

well i have this fill but when i configure my pad, and i lunch game i have this F... crahs!!

Last edited by Yassine; April 6th, 2008 at 18:21. Reason: Automerged Doublepost
Yassine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 17:18.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5