(04-06-2011, 05:15 AM)dubigrasu Wrote: [ -> ]Just some small things:
Unfortunately it doesn't matter what KDE and jstest are detecting, SDL does its own detection and it can still screw it up and badly detect the axis.
Yes your right.
btw, can you test xbox360 with Zeropad plugin, in there have Forcefeedback option.
After i do some test with source rpm 1.2.13 from mandriva 2010.0, and compile it with
rpm-build -bb SDL12-1.2.13.spec, then i test it with
pcsx2-beta r3881
and pcsx2-svn r4517 (re-compiled again from source)
- without
export SDL_JOYSTICK_DEVICE=/dev/input/js0 , i can'not using Left Analog Stick, because it's only detect Left Analog stick UP and Left direction.
- with
export SDL_JOYSTICK_DEVICE=/dev/input/js0 i can set it in Onepad, but in the game, i cannot use DPAd.
then using SDL 1.2.14 source rpm, check it, the patch :
Code:
::::::::::::::
222_joystick_crash.diff
::::::::::::::
Description: Fix crash with joystick detection.
Index: libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c
===================================================================
--- libsdl1.2-1.2.14.orig/src/joystick/linux/SDL_sysjoystick.c 2010-01-12 12:37:36.000000000 -0500
+++ libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c 2010-01-12 12:38:27.000000000 -0500
@@ -700,7 +700,7 @@
continue;
}
if ( test_bit(i, absbit) ) {
- int values[5];
+ int values[6];
if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
continue;
is not aplied and no patch like that in Mandriva Source RPM SDL 1.2.14
So I patch it.
But this patch:
Code:
218_joystick_memmove.diff
::::::::::::::
---
src/joystick/SDL_joystick.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -373,7 +373,7 @@
/* Remove joystick from list */
for ( i=0; SDL_joysticks[i]; ++i ) {
if ( joystick == SDL_joysticks[i] ) {
- SDL_memcpy(&SDL_joysticks[i], &SDL_joysticks[i+1],
+ SDL_memmove(&SDL_joysticks[i], &SDL_joysticks[i+1],
(SDL_numjoysticks-i)*sizeof(joystick));
break;
}
is Already Aplied in the Original SDL Source Code 1.2.14.
Then Compile it with
rpm-build -bb SDL12-1.2.14.spec and install it.
then i test it with
pcsx2-beta r3881 (binary release)
and pcsx2-svn r4517 (re-compiled again from source)
- - without
export SDL_JOYSTICK_DEVICE=/dev/input/js0 , i can'not using Left Analog Stick, because it's only detect Left Analog stick UP and Left direction.
- with
export SDL_JOYSTICK_DEVICE=/dev/input/js0 i can set it in Onepad in
pcsx2-beta, but in the game, i cannot use DPAd corecly,
sometime, the DPad Up direction not working, sometimes the DPad Down direction not working.
- with
export SDL_JOYSTICK_DEVICE=/dev/input/js0 i can set it in Onepad in
pcsx2 r4517, and now it's working corect.
But to setup is hard, i need a lot try.
after i get the right setuo, i coppied the ini to the
pcsx2-beta
and now
pcsx2-beta can use it corectly.
If you want, i can give SDL12-1.2.14 rpm to you.
or you could tell to Mandriva team, to aplly that patch to Fix Fix crash with joystick detection.
so tey can build new rpm and put it in updates repro.
@Gregory
I Got Another problem, to set up Onepad plugin in svn is hard to click
OK button, because no scroll menu in Onepad anymore, like in pcsx2-beta.
This problem exist if i use sdl 1.2.13 or 1.2.14.
here the screenshot:
1.Pcsx2-beta r3881
Uploaded with
ImageShack.us
2.pcsx2-svn
Uploaded with
ImageShack.us