PDA

View Full Version : PCSX patch


shirouto_yokota
June 25th, 2003, 12:48
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/PeteBernert/spu_interface.zip.
Plewse fix plugins.c and PSEmu_Plugin_Defs.h by this patch.
http://members.tripod.co.jp/shirouto_yokota/patch15.zip
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

Gismo
June 25th, 2003, 17:57
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

linuzappz
June 25th, 2003, 19:11
hi, i'll add it, thanks yokota :)

Gismo
June 25th, 2003, 22:28
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,

shirouto_yokota
June 30th, 2003, 13:57
Hello, linunzappz and Gismo,

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...
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.

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

Gismo
July 1st, 2003, 17:04
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 ;)

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