Page 1 of 1

Howto add support of joystick/gamepad.

Posted: Mon Feb 27, 2006 3:08 pm
by xterminhate
Before coding my own wrapper Direct Input to Irrlicht, let me know if someone already succeed in adding joy/pad support.

Posted: Mon Feb 27, 2006 11:10 pm
by bitplane

Posted: Mon Feb 27, 2006 11:44 pm
by Guest
Thanks. That's exactly what I was looking for. I will have to enhance the code....

Well

Posted: Sun Jul 23, 2006 3:05 pm
by Fice
Ok, this site helped me alot, but i have a big problem!

Is there any way to have fullscreen mode and joystick support?

If so, how can i do that?

Posted: Sun Jul 23, 2006 3:32 pm
by NextDesign
Fice wrote:Is there any way to have fullscreen mode and joystick support?
Yes, change this variable to true:

Code: Select all

param.Fullscreen = false;

Posted: Mon Jul 24, 2006 3:30 am
by Fice
No, i already have

Code: Select all

param.Fullscreen = true;
but the program is running in window mode.

I don't know where, but i read, that Irrlicht is ignoring this parameter if a window handle is set. That's why I'm asking.


Is there anyway to get the window handle, when irrlicht created the window? Which class creates the handle, perhaps I can change it, so i can have access to the handle

Posted: Mon Jul 24, 2006 8:12 am
by vitek
Yes, the fullscreen member is ignored if you specify a window handle. You don't need to specify a window handle when you create the Irrlicht device. You can get the HWND from the SExposedVideoData that is returned by IVideoDriver::getExposedVideoData()...

Code: Select all

IrrlichtDevice* device = createDevice(video::EDT_DIRECT3D9, ...);
if (!device)
   return 0;

video::IVideoDriver* driver = device->getVideoDriver();
HWND hWnd = (HWND)driver->getExposedVideoData().D3D9.HWnd;
Travis