{
}
+void pl_gun_byte2(int port, unsigned char byte)
+{
+}
+
/* sound calls */
static void snd_feed(void *buf, int bytes)
{
*yres = psx_h;
}
+void pl_gun_byte2(int port, unsigned char byte)
+{
+}
+
#define MAX_LAG_FRAMES 3
#define tvdiff(tv, tv_old) \
//configuration mode Request 0x43
int configMode;
- unsigned char reserved[87];
+
+ unsigned char txData[32];
+ unsigned char reserved[56];
//Lightgun values
int absoluteX,absoluteY;
}
}
+ if (reqPos < sizeof(pad[port].txData))
+ pad[port].txData[reqPos] = value;
+
//if no new request the pad return 0xff, for signaling connected
if (reqPos >= respSize)
return 0xff;
+ if (in_type[port] == PSE_PAD_TYPE_GUN) {
+ if (reqPos == 2)
+ pl_gun_byte2(port, value);
+ }
+ else
switch(reqPos){
case 2:
reqIndex2Treatment(port, value);
#define GUNIN_BTNB (1<<2)
#define GUNIN_TRIGGER2 (1<<3) /* offscreen trigger */
extern void pl_update_gun(int *xn, int *yn, int *xres, int *yres, int *in);
+extern void pl_gun_byte2(int port, unsigned char byte);
/* vibration trigger to frontend */
extern int in_enable_vibration;