mouvement gamepad

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
BloodInch
Posts: 18
Joined: Mon Jun 16, 2008 5:49 pm
Location: France
Contact:

mouvement gamepad

Post by BloodInch »

for our game, we ll want use the gamepadfor mouvement and combat, whats the best solutions ?
For exemple an dualqhock to ps2 compatible ? I desire just applicate one action to a touch of gamepad, and more in advance use the analogic mushroom ;)

Thx for you respond ;)

Nicolas
[Essayer De Toucher l'Horizon] -+- [Try To Tuch The Horizon]
Image
CuteAlien
Admin
Posts: 9741
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Several solutions:

Using the input system of SDL (http://www.libsdl.org/index.php) is rather easy and it will run on most platforms. But integrating the lib can be a little work and the license is LGPL.

OIS (Object Oriented Input System) (http://sourceforge.net/projects/wgois) is another solution. Seems to work on Windows, Linux and partly on Mac. It offers force-feedback support and uses the ZLIB license. But I never used it so I can't tell how well it works.

And you can certainly use the input system of a specific platform, like DirectInput on Windows.

Edit: Wait - analogic mushroom??? Uh, I have no idea... is it legal?
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
BloodInch
Posts: 18
Joined: Mon Jun 16, 2008 5:49 pm
Location: France
Contact:

Post by BloodInch »

thx for your help ;)
I dont think ist illegal to use the mushroom touch of gamepad ^^

Nicolas
[Essayer De Toucher l'Horizon] -+- [Try To Tuch The Horizon]
Image
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

analogic mushroom....

Image

I think you mean analog stick ;)
Image Image Image
BloodInch
Posts: 18
Joined: Mon Jun 16, 2008 5:49 pm
Location: France
Contact:

Post by BloodInch »

yes sorry in french is a mushroom ^^ a stick if you want ^^
[Essayer De Toucher l'Horizon] -+- [Try To Tuch The Horizon]
Image
Trefall
Posts: 45
Joined: Tue Dec 05, 2006 8:49 pm

Post by Trefall »

I give thumbs up for OIS. I've used it to do gamepad controls before and is very easy to set up. There are some examples of using it over at the Ogre3D wiki and forum.
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Never heard it being called "champignon" en français...
BloodInch
Posts: 18
Joined: Mon Jun 16, 2008 5:49 pm
Location: France
Contact:

Post by BloodInch »

ben chez moi oui ^^
tu sais la langue de moliere est vaste :p
[Essayer De Toucher l'Horizon] -+- [Try To Tuch The Horizon]
Image
d3jake
Posts: 198
Joined: Sat Mar 22, 2008 7:49 pm
Location: United States of America

Post by d3jake »

Provided that the gamepad is recognized by windows\whatever OS I would reccomend using SDL for input. It's not super easy to set up, but once it is it is really nice to use.
If you ask CuteAlien you may be able to get some parts of sourcefiles\headers that set up the input, and how to poll for events, etc. That's where I got the information from.
The Open Descent Foundation is always looking for programmers! http://www.odf-online.org
"I'll find out if what I deleted was vital here shortly..." -d3jake
Post Reply