View Single Post
Old May 17th, 2003   #10 (permalink)
Gismo
A man w/ a lot of dreams
 
Gismo's Avatar
 
Join Date: Nov 2002
Location: now Geneva (CH) / past Lodi (ITA)
Posts: 731
Quote:
Originally posted by ammoQ
It's done, padJoy 0.80 is available:
http://download.ammoq.com
also includes analog pad emulation (I could not fully test it, since I don't have such a pad; please report whether or not it works)
Hello, ammoQ! I'm fine your silence via e-mail wasn't due to some problems, but to the opposite!

Ok, I tried the new padJoy 0.80 and now the config window is ok. For the analog pad emulation, there's a little problem: as I saw in the code, u added the "use_analog" variable, but in cfg.c u never save it on cfg/padJoy.cfg, so everytime the pad configuration is read, the pad is set as digital by default (in fact, everytime u push the "configure" button in the plugins window, the analog option is unselected).

I also tried to add the only 2 lines needed (I think, but I'm not sure) in cfg.c
- line 613, saveConfig
fprintf(f,"use_analog = %d\n", use_analog);
- line 695, loadConfig
else if (!strncmp(line, "use_analog", 10)) {
use_analog = atoi(val);
}


but the 'make' command returns me this error (same error if you try to recompile your not-modified archive and as I don't have a lot time now to solve it, I report it to you )
gismo:/usr/src/padJoy/src# make
cc -fPIC -Wall -O2 -fomit-frame-pointer -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DVERSION=0 -DBUILD=8 -c -o pad.o pad.c
pad.c: In function `PADopen':
pad.c:172: parse error before `*'
pad.c:198: `pje' undeclared (first use in this function)
pad.c:198: (Each undeclared identifier is reported only once
pad.c:198: for each function it appears in.)
make: *** [pad.o] Error 1
gismo:/usr/src/padJoy/src#


For the moment, thx again, on the other hand the config dialog for the analog features (sticks and buttons) works perfectly

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