Howto add support of joystick/gamepad.
-
- Posts: 206
- Joined: Thu Sep 01, 2005 9:26 pm
- Location: France
Howto add support of joystick/gamepad.
Before coding my own wrapper Direct Input to Irrlicht, let me know if someone already succeed in adding joy/pad support.
Return to Irrlicht after years... I'm lovin it.
It's hard to be a Man !
Si vis pacem para belum
It's hard to be a Man !
Si vis pacem para belum
-
- Posts: 12
- Joined: Mon Mar 20, 2006 11:10 pm
- Contact:
Yes, change this variable to true:Fice wrote:Is there any way to have fullscreen mode and joystick support?
Code: Select all
param.Fullscreen = false;
No, i already have
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
Code: Select all
param.Fullscreen = true;
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
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()...
Travis
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;