Gamepad library!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
FireCross88
Posts: 14
Joined: Wed Jul 04, 2007 4:57 am

Gamepad library!

Post 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!
catron
Posts: 158
Joined: Mon Feb 19, 2007 1:54 am

Post by catron »

check out SDL(Simple direct Media Library) it has joystick and joypad input.
FireCross88
Posts: 14
Joined: Wed Jul 04, 2007 4:57 am

Post 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?
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply