Emuforums.com

Go Back   Emuforums.com > PSX Emulation > PCSX Discussion
Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old June 25th, 2003   #1 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 39
PCSX patch

Hello, linuzappz.

I made serious mistake in negcon function. Members negConWheel, negConB1, negConB2, and negConB3 are already declared in "PSEmu Plugin Defs.h" of http://home.t-online.de/home/PeteBer..._interface.zip.
Plewse fix plugins.c and PSEmu_Plugin_Defs.h by this patch.
http://members.tripod.co.jp/shirouto_yokota/patch15.zip
Quote:
typedef struct
{
// controler type - fill it withe predefined values above
unsigned char controllerType;

// status of buttons - every controller fills this field
unsigned short buttonStatus;

// for analog pad fill those next 4 bytes
// values are analog in range 0-255 where 128 is center position
unsigned char rightJoyX, rightJoyY, leftJoyX, leftJoyY;

// for mouse fill those next 2 bytes (and buttons in button status)
// values are in range -128 - 127
unsigned char moveX, moveY;

// for NEGCON from Namco
// set next four bytes
// this is caused by screwing pad 0-255 values and 128 in normal position
unsigned char negConWheel;
//and those three bytes correcpond to pressing analog buttons
unsigned char negConB1, negConB2, negConB3;

// do not touch reserved area
unsigned char reserved[87];

} PadDataS;
Thank you for reading,
yokota
shirouto_yokota is offline   Reply With Quote
Old June 25th, 2003   #2 (permalink)
A man w/ a lot of dreams
 
Gismo's Avatar
 
Join Date: Nov 2002
Location: now Geneva (CH) / past Lodi (ITA)
Posts: 731
Re: PCSX patch

Quote:
Originally Posted by shirouto_yokota
Hello, linuzappz.
it's not linuzappz here, but Gismo

Why the need of a patch? I mean, from Mr.Fujita PSX specs file (I don't remember the link, but we know what we'r talking about), the 4 NeGcon analog features r mapped as the 4 analog sticks values in a DualShock pad, so...

- NeGcon twist > right stick left/ritght > rightJoyX
- NeGcon I > right stick up/down > rightJoyY
- NeGcon II > left stick left/right > leftJoyX
- NeGcon L > left stick up/down > leftJoyY

They'r already analog values, centered to 128.
Well, I think that other specific values for NeGcon will be useless (perhaps it should be better to re-named them to analog6thbyte and so on or other names).

Thx, bye
__________________
< half-december '02: ASUS L2480C (14" TFT / Athlon XP 1600+ / SiS 630/730 / 256MB SDRAM / 20GB HDD / DVD-ROM+CD-RW)
> half-december '02: ASUS L3562T (15" TFT / Pentium4 2.0GHz / SiS 650 / 256MB DDR / 40GB HDD / DVD-ROM+CD-RW)
> end-march '03: ASUS L3568T (15" TFT / Pentium4 2.4GHz / SiS 650 / 256MB DDR / 40GB HDD / DVD-ROM+CD-RW)
> june '03: ASUS M3410C (14" TFT / Intel Centrino Pentium-M 1.3GHz / Intel 855GM / 512MB DDR / 40GB HDD / DVD-ROM+CD-RW)
==============================
always... Debian sid/unstable (& sometimes WXP-Pro+SP1+lastDX) / Super Dual Box (2-players PSXtoUSB) / Sony DualShock 2 Ocean blue
Gismo is offline   Reply With Quote
Old June 25th, 2003   #3 (permalink)
Emu author
 
Join Date: Mar 2002
Posts: 146
Re: PCSX patch

hi, i'll add it, thanks yokota
linuzappz is offline   Reply With Quote
Old June 25th, 2003   #4 (permalink)
A man w/ a lot of dreams
 
Gismo's Avatar
 
Join Date: Nov 2002
Location: now Geneva (CH) / past Lodi (ITA)
Posts: 731
Re: PCSX patch

Quote:
Originally Posted by linuzappz
hi, i'll add it, thanks yokota
it seems nobody heard me: why the need for other constant when those for the analog pad are correct and usefull? As in the "PSEmu_Plugins_def.h" from Harakiri pad source there'r not the NeGcon values...

Btw, which is the exact name for the Namco NeGcon? Because I call it NeGcon, while Pete and Yokota NegCon

Thx, bye,
__________________
< half-december '02: ASUS L2480C (14" TFT / Athlon XP 1600+ / SiS 630/730 / 256MB SDRAM / 20GB HDD / DVD-ROM+CD-RW)
> half-december '02: ASUS L3562T (15" TFT / Pentium4 2.0GHz / SiS 650 / 256MB DDR / 40GB HDD / DVD-ROM+CD-RW)
> end-march '03: ASUS L3568T (15" TFT / Pentium4 2.4GHz / SiS 650 / 256MB DDR / 40GB HDD / DVD-ROM+CD-RW)
> june '03: ASUS M3410C (14" TFT / Intel Centrino Pentium-M 1.3GHz / Intel 855GM / 512MB DDR / 40GB HDD / DVD-ROM+CD-RW)
==============================
always... Debian sid/unstable (& sometimes WXP-Pro+SP1+lastDX) / Super Dual Box (2-players PSXtoUSB) / Sony DualShock 2 Ocean blue
Gismo is offline   Reply With Quote
Old June 30th, 2003   #5 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 39
Hello, linunzappz and Gismo,

Quote:
it seems nobody heard me: why the need for other constant when those for the analog pad are correct and usefull? As in the "PSEmu_Plugins_def.h" from Harakiri pad source there'r not the NeGcon values...
Quote:
Well, I think that other specific values for NeGcon will be useless (perhaps it should be better to re-named them to analog6thbyte and so on or other names).
Your idea seems to be most suitable. But, we have to esteem the definition by PSEmu team. PCSX and other plugin-style emulators are generally known as "PSEmu Pro compatible" emulators.

"PSEmu Plugin Defs.h" of spu_interface.zip seems to be newer than "PSEmu_Plugins_def.h" of pad_interface.zip. Version of the former (_PPDK_HEADER_VERSION) is 3. The later is 1.

Quote:
Btw, which is the exact name for the Namco NeGcon? Because I call it NeGcon, while Pete and Yokota NegCon
Perhaps "neGcon" is right, although I usually use "negcon" . I didn't treat it seriously.
http://www.namco.co.jp/cs/ps/negcon/img/negcon-logo.gif

Thank you for reading,
yokota
shirouto_yokota is offline   Reply With Quote
Old July 1st, 2003   #6 (permalink)
A man w/ a lot of dreams
 
Gismo's Avatar
 
Join Date: Nov 2002
Location: now Geneva (CH) / past Lodi (ITA)
Posts: 731
Re: PCSX patch

Quote:
Originally Posted by shirouto_yokota
Hello, linunzappz and Gismo,
Your idea seems to be most suitable. But, we have to esteem the definition by PSEmu team. PCSX and other plugin-style emulators are generally known as "PSEmu Pro compatible" emulators.

"PSEmu Plugin Defs.h" of spu_interface.zip seems to be newer than "PSEmu_Plugins_def.h" of pad_interface.zip. Version of the former (_PPDK_HEADER_VERSION) is 3. The later is 1.
I know the "PSEmu Pro compatible" history and what I didn't know was the fact that PSemu_Plugins_def.h from spu_interface.zip was a newer version of the former one, so all my suggest/request r no more valable

Quote:
Perhaps "neGcon" is right, although I usually use "negcon" . I didn't treat it seriously.
http://www.namco.co.jp/cs/ps/negcon/img/negcon-logo.gif
Well, this is only a curiosity of mine, as on the PSEmu_Plugins_def.h it's called "negCon" and as I've never had a real one, I'd like to know the exact name.

Thx, bye
__________________
< half-december '02: ASUS L2480C (14" TFT / Athlon XP 1600+ / SiS 630/730 / 256MB SDRAM / 20GB HDD / DVD-ROM+CD-RW)
> half-december '02: ASUS L3562T (15" TFT / Pentium4 2.0GHz / SiS 650 / 256MB DDR / 40GB HDD / DVD-ROM+CD-RW)
> end-march '03: ASUS L3568T (15" TFT / Pentium4 2.4GHz / SiS 650 / 256MB DDR / 40GB HDD / DVD-ROM+CD-RW)
> june '03: ASUS M3410C (14" TFT / Intel Centrino Pentium-M 1.3GHz / Intel 855GM / 512MB DDR / 40GB HDD / DVD-ROM+CD-RW)
==============================
always... Debian sid/unstable (& sometimes WXP-Pro+SP1+lastDX) / Super Dual Box (2-players PSXtoUSB) / Sony DualShock 2 Ocean blue
Gismo 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 22:40.


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