joystick support for irrlicht--what library to use?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
dhenton9000
Posts: 395
Joined: Fri Apr 08, 2005 8:46 pm

joystick support for irrlicht--what library to use?

Post 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.
Alex001
Posts: 25
Joined: Tue Dec 02, 2003 8:20 pm
Location: Germany, Munich

not supported by Irrlicht

Post 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.
Any fool can make things bigger, more complex, and more violent. It takes a touch of genius-and a lot of courage-to move in the opposite direction.
(Albert Einstein)
melon2004
Posts: 13
Joined: Tue Jul 27, 2004 6:53 pm

Post 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:) )
terefang
Posts: 48
Joined: Tue Jun 21, 2005 9:56 am

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

Post 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,
terefang
nVidia 7800GT/256, AMD64-X2 4k2, Latest Fedora/CentOS
Post Reply