joyrider
Active Member
Hey,
i had some time to play with the cradle however i got a problem.
i'm using the open2x toolchain under cygwin on windows. I had compiled all the libs myself using the open2x-libs.sh file. I'm using the test SDL 1.2.11 version for the sdl libs.
Now i know my joysticks work using the cradle since the default gp2x menu / user interface recognizes my joysticks and i can move around the menu using the joysticks attached to the cradle.
i'm using a dual usb joypad where i can hook up 1 or 2 psx / ps2 joypads to. (MP-8866 (Dual) convertor)
now i was wondering since i have compiled everything myself if the script lacks some compile / configure parameter for having usb joystick support enabled ?
i looked at the SDL_sysjoystick.c file from linux in the source code and saw something about the convertor i used. so i guess it should be supported but i wonder why it doesn't work.
can anyone help me with this ? tell me if have to recompile the sdl libs with some special parameters or sumthing. or if i'm missing something.
The joysticks show up as /Dev/input/event1
SDL_Numjoysticks() always returns 1 even though there are 3 joytiscks attached (2 on cradle, and one from the gp2x itself)
looked at the sdl source code some more and saw this :
/* Function to scan the system for joysticks */
int SDL_SYS_JoystickInit(void)
{
/* The base path of the joystick devices */
const char *joydev_pattern[] = {
#if SDL_INPUT_LINUXEV
"/dev/input/event%d",
#endif
so SDL_INPUT_LINUXEV should probably be set for my joystick to be recognized now i don't know if this can and may be set using -DSDL_INPUT_LINUXEV at compile time ? would it work then ? cause i really am not in the mood to recompile everything again just to find out it doesn't work ? (at least i think i have to recompile everything again what's based on SDL right io SDL_GFX, SDL_MIXER, ETC?)
i had some time to play with the cradle however i got a problem.
i'm using the open2x toolchain under cygwin on windows. I had compiled all the libs myself using the open2x-libs.sh file. I'm using the test SDL 1.2.11 version for the sdl libs.
Now i know my joysticks work using the cradle since the default gp2x menu / user interface recognizes my joysticks and i can move around the menu using the joysticks attached to the cradle.
i'm using a dual usb joypad where i can hook up 1 or 2 psx / ps2 joypads to. (MP-8866 (Dual) convertor)
now i was wondering since i have compiled everything myself if the script lacks some compile / configure parameter for having usb joystick support enabled ?
i looked at the SDL_sysjoystick.c file from linux in the source code and saw something about the convertor i used. so i guess it should be supported but i wonder why it doesn't work.
can anyone help me with this ? tell me if have to recompile the sdl libs with some special parameters or sumthing. or if i'm missing something.
The joysticks show up as /Dev/input/event1
SDL_Numjoysticks() always returns 1 even though there are 3 joytiscks attached (2 on cradle, and one from the gp2x itself)
looked at the sdl source code some more and saw this :
/* Function to scan the system for joysticks */
int SDL_SYS_JoystickInit(void)
{
/* The base path of the joystick devices */
const char *joydev_pattern[] = {
#if SDL_INPUT_LINUXEV
"/dev/input/event%d",
#endif
so SDL_INPUT_LINUXEV should probably be set for my joystick to be recognized now i don't know if this can and may be set using -DSDL_INPUT_LINUXEV at compile time ? would it work then ? cause i really am not in the mood to recompile everything again just to find out it doesn't work ? (at least i think i have to recompile everything again what's based on SDL right io SDL_GFX, SDL_MIXER, ETC?)