sending command TO a joystick

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
tft67
Posts: 19
Joined: Sat Nov 08, 2008 2:56 am

sending command TO a joystick

Post by tft67 »

I want to move an airplane from my irrlicht program.
Does any one know how to do this ?
Any idea ?
vinjn
Posts: 27
Joined: Tue May 20, 2008 4:45 am

Post by vinjn »

please have some time at irrlicht\examples\19.MouseAndJoystick\
CuteAlien
Admin
Posts: 9682
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Do you mean sending sending data to the hardware? Or do you mean simulating joystick events for ingame controls?
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
tft67
Posts: 19
Joined: Sat Nov 08, 2008 2:56 am

Post by tft67 »

CuteAlien : It's exactly what i want to do : sending data to the hardware
vinj : 9.MouseAndJoystick sample just read data from the joystick.
CuteAlien
Admin
Posts: 9682
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Hm, yes - that is beyond the scope of a 3D engine. I know you can send some force-feedback stuff using DirectInput on Windows. Otherwise I think it's rather OS specific. You have to write to the game port (or usb?) and I have no real experience with that. Best you google for that. Might be especially hard if you have Vista or newer as I think those don't even come with game port drivers anymore.

edit: If this is some special device, then maybe you can get some driver-information for it from the manufacturer.
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
tft67
Posts: 19
Joined: Sat Nov 08, 2008 2:56 am

Post by tft67 »

Ok.
Thank you for your answer.
Post Reply