Page 1 of 1

joystick support for irrlicht--what library to use?

Posted: Sun Aug 07, 2005 3:39 pm
by dhenton9000
Yes, I searched the archives, and it appears that I've got to use a library for joystick support. In reading the library, I saw two mentions SDL and Direct Input.

Has anybody tried these with irrlicht yet, and/or does anyone know if irrlicht event receiver is going to interfere with getting to the joystick directly?

I've heard rumors that irrlicht snarfs input when used in an MFC dialog, so I was hoping for some pointers before I start heading banging on joystick use.

Thanks in advance.

not supported by Irrlicht

Posted: Mon Aug 08, 2005 11:04 am
by Alex001
found the same information - because Irrlicht is a grafic engine NOT a game engine
we have the same problem and I think I go to integrate it myown ....
If you will find better info pls. let me know, too.

Posted: Mon Aug 08, 2005 3:54 pm
by melon2004
I use SDL (SDL_Joystick *, only with SDL_INIT_JOYSTICK on initiation) and Irrlicht's EventReceiver - works great, nothing intereferes as I stick to idea that only joystick is managed by SDL and whole the rest by EventReceiver.

My advice is: keep away from DirectX :roll: - I had to programm joystick with it once, it generally sucks :( But maybe I'm just slow in Windows' programming (yes, I prefer Linux:) )

Conclusion: Irrlicht and SDL_Joystick works (I already have working project, so that's 100% sure:) )

Re: joystick support for irrlicht--what library to use?

Posted: Mon Aug 08, 2005 4:21 pm
by terefang
dhenton9000 wrote:Yes, I searched the archives, and it appears that I've got to use a library for joystick support. In reading the library, I saw two mentions SDL and Direct Input.
direct input does the trick and if you compiled irrlicht with dx support the directinput api+libs are already available :)

dhenton9000 wrote:Has anybody tried these with irrlicht yet, and/or does anyone know if irrlicht event receiver is going to interfere with getting to the joystick directly?

I've heard rumors that irrlicht snarfs input when used in an MFC dialog, so I was hoping for some pointers before I start heading banging on joystick use.
irrlicht uses the win32 api to receive events(push-model), which is entirely
separate from directinput(pull-model).

cheers,