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