gamepad input lib?(solved)

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

gamepad input lib?(solved)

Post by 3DModelerMan »

Hi does anyone know of an easy to use input library for pc gamepads?, I'm gonna buy one for a game of mine, I want something that's similar to the master event receiver from the wiki. I tried searching but did'nt find much. Oh and I need support for multiple pads.
Thanks :D .
Last edited by 3DModelerMan on Fri Oct 10, 2008 2:15 pm, edited 1 time in total.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
kornwaretm
Competition winner
Posts: 189
Joined: Tue Oct 16, 2007 3:53 am
Location: Indonesia
Contact:

Post by kornwaretm »

google for SDL :D
CuteAlien
Admin
Posts: 9687
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Gamepads are accessed like joysticks. As libraries for that you can use OIS, SDL or platform specific input libraries like DirectInput.

There has recently been a thread about integrating OIS: http://irrlicht.sourceforge.net/phpBB2/ ... hlight=ois
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
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Oh

Post by 3DModelerMan »

Cool I'll try that... I only have one question, is there one that can be checked with an if statement inside of my main game loop?.
Thanks :D .
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

If you want to use a Xbox 360 controller, then use XInput. And whether or not you can use it with an 'if' inside your main loop largely depends on how your implement it, or the implementation of the library discussed in its respective documentation.
TheQuestion = 2B || !2B
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

nope

Post by 3DModelerMan »

Well I'm going to get a couple of these
http://www.compusa.com/applications/Sea ... &CatId=141

I want something that's already built though, and I use code::blocks with gcc compiler on windows XP.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Look at the answers above or Google it.
TheQuestion = 2B || !2B
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

or you COULD look for my SDL input event receiver with joystick support. i haven't really tested it much, but it should work fine
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

oh

Post by 3DModelerMan »

Oh that would probably work. Can you give me a link?.
I can't seem to find forums for the SDL :( .
Rooly would you please change your sig to something less... disturbing :shock: , speaking of sigs... I bet no one can guess where mine comes from :lol: .
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

hmmm

Post by 3DModelerMan »

Hello?.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Friggin learn to SEARCH!
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

close or lock-down this thread, please.

this thing is o-v-e-r.

have a nice day to all of you.

thanks.
Image
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

3DModelerMan wrote: Hello?.
Image
TheQuestion = 2B || !2B
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

oh

Post by 3DModelerMan »

Sorry, I searched and found WXjoystick (part of WXwidgets) the only problem is I can't seem to find good docs.
But did anyone recognize my sig?.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Re: oh

Post by Halifax »

3DModelerMan wrote:Sorry, I searched and found WXjoystick (part of WXwidgets) the only problem is I can't seem to find good docs.
But did anyone recognize my sig?.
No I don't recognize it. And what was your search string? He told you that it was made with SDL, and you said you couldn't find the SDL forums, so why didn't you make your search string "SDL." That would point you directly to SDL which I gaurantee probably contains a link to their forum.
TheQuestion = 2B || !2B
Post Reply