[SDL] SDL on a mips embedded system with Debian on it
Benjamin Behringer
b.behringer at gmx.net
Tue Apr 15 09:39:23 PDT 2008
Hi,
i tried to run a gamepad application on a Netgear WGT634U. Debian
2.6.24.2 is running on this machine and dmesg shows that the cordless
rumblepad is detected properly.
input: Logitech Logitech Cordless RumblePad 2 as
/devices/pci0000:00/0000:00:02.2/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
input: USB HID v1.10 Gamepad [Logitech Logitech Cordless RumblePad 2] on
usb-0000:00:02.2-1.2
I initialize the gamepad with the following function:
//Init SDL
if ( SDL_Init(SDL_INIT_JOYSTICK) )
I don't receive any events from the gamepad.
I read that its necessary to initialize it with video:
//Init SDL
if ( SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO) )
But there is no video on my system... I tried it with a virtual
framebuffer... still doesn't work.
On my computer (x86) with Debian the application runs with
if ( SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO) )
So what should I do to get things work?
Many thanks in advance.
Benjamin
More information about the SDL
mailing list