Page 1 of 1

Gamepad library!

Posted: Mon Jul 16, 2007 4:53 am
by FireCross88
Hey guys,

Does anyone have any libraries (with tutorials/examples) to process gamepad input with the irrlicht engine the same way as keyboard input?

Thanks!

Posted: Mon Jul 16, 2007 5:15 am
by catron
check out SDL(Simple direct Media Library) it has joystick and joypad input.

Posted: Mon Jul 16, 2007 1:42 pm
by FireCross88
Sorry but I'm really noob.

Can this SDL thing be used with Irrlicht, or do I have to use SDL for everything (graphics, sound, etc) if I want to process gamepad input via their libraries?

Posted: Mon Jul 16, 2007 4:24 pm
by CuteAlien
You can mix Irrlicht and SDL and only use joystick/gamepad input of SDL. You can also recompile SDL to throw everything besides the input part out. But there is not really a reason to do so except if you want a smaller shared library.

Gamepads are accessed like joysticks, so you will have to read the joystick programming documentation of SDL.

Depending on the project you have to care about the license. SDL is using a LGPL license which is a little more restrictive than the zlib-license of irrlicht.