Page 1 of 2

gamepad input lib?(solved)

Posted: Mon Oct 06, 2008 2:50 pm
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 .

Posted: Mon Oct 06, 2008 5:01 pm
by kornwaretm
google for SDL :D

Posted: Mon Oct 06, 2008 5:01 pm
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

Oh

Posted: Mon Oct 06, 2008 5:47 pm
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 .

Posted: Mon Oct 06, 2008 5:50 pm
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.

nope

Posted: Mon Oct 06, 2008 5:54 pm
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.

Posted: Mon Oct 06, 2008 6:07 pm
by Halifax
Look at the answers above or Google it.

Posted: Mon Oct 06, 2008 10:34 pm
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

oh

Posted: Tue Oct 07, 2008 12:28 am
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: .

hmmm

Posted: Tue Oct 07, 2008 5:21 pm
by 3DModelerMan
Hello?.

Posted: Tue Oct 07, 2008 7:13 pm
by Dorth
Friggin learn to SEARCH!

Posted: Tue Oct 07, 2008 7:19 pm
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.

Posted: Tue Oct 07, 2008 9:13 pm
by Halifax
3DModelerMan wrote: Hello?.
Image

oh

Posted: Tue Oct 07, 2008 10:44 pm
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?.

Re: oh

Posted: Tue Oct 07, 2008 11:17 pm
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.