OIS Integration Tutorial
OIS Integration Tutorial
OIS (Object oriented Input System) is an alternative 3rd party input processing library.
The initial draft of Integrating OIS with Irrlicht is now available on the Irrlicht Engine Wiki.
Thanks go to hybrid for implementing the necessary Irrlicht changes which allow OIS and Irrlicht to work properly on Linux.
The initial draft of Integrating OIS with Irrlicht is now available on the Irrlicht Engine Wiki.
Thanks go to hybrid for implementing the necessary Irrlicht changes which allow OIS and Irrlicht to work properly on Linux.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Great, thanks to both of you for making this happen.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hi, i am trying to compile sample program from this tutorial, but i get errors... Using irrlicht 1.4.2 on windows. What shoud i include that it compile?
irrlicht lib
ois lib
irrlicht include
ois include
anything else?
irrlicht lib
ois lib
irrlicht include
ois include
anything else?
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
You shouldn't need to do anything on visual studio except:
- use the files on the wiki page ( COIS.h, COIS.cpp, main.cpp )
- link to irrlicht.lib and OIS_static.lib (which you have already compiled separately )
..also, if you are using vs express i don't know you might have a problem including windows.h? in that case find the windows platform sdk to install
- use the files on the wiki page ( COIS.h, COIS.cpp, main.cpp )
- link to irrlicht.lib and OIS_static.lib (which you have already compiled separately )
..also, if you are using vs express i don't know you might have a problem including windows.h? in that case find the windows platform sdk to install
I use codeblock with gcc. In COIS.h is #include "OIS.h" so i must include ../ois/includes or else it cant find it. But then i get errors like D:\ois\src\win32\Win32InputManager.cpp|78|undefined reference to `IID_IDirectInput8A'|
D:\ois\src\win32\Win32InputManager.cpp|78|undefined reference to `DirectInput8Create@20'|
Including dx sdk cant fix it..
D:\ois\src\win32\Win32InputManager.cpp|78|undefined reference to `DirectInput8Create@20'|
Including dx sdk cant fix it..
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
OK, finally i compiled, but now then i move any joystick axis program crashes... with other joystick program crashes instantly on load. Is this OIS bug or wrapper?
Edit: program crashes in bool COIS::axisMoved then calling arg.state.mAxes[axis].abs
Edit: program crashes in bool COIS::axisMoved then calling arg.state.mAxes[axis].abs
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
Thanks, it was so easy, but i searched deeper. Started looking mistake in OIS files
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
On the wiki it says
and when i try to run DemoFFTest.cbp in codeblocks and build it i get a error saying :"ld.exe||cannot find -lOIS_static_d|"
does anyone kow why i am gettign this error?, thanks in advance.
But it only says for visual studio...how about code::blocks?OIS provides both a Visual Studio solution file and a CodeBlocks (mingw) project for building static libraries on Windows. To build using Visual Studio, open the solution file located in the directory "Win32" off of the OIS installation directory {OIS Install}.
and when i try to run DemoFFTest.cbp in codeblocks and build it i get a error saying :"ld.exe||cannot find -lOIS_static_d|"
does anyone kow why i am gettign this error?, thanks in advance.
C++ is not the Magdalena...it takes patience...shes like the well aged prostitute, it takes years to learn her tricks! she is cruel...laughs at you when you are naked...
Life of a programmer == Const abuse
Life of a programmer == Const abuse
MasterM - I see that pjcast responded to your question in the OIS forum.
Note that when I try to build the OIS static libraries using CB, the compiler throws: "dinput.h No such file or directory". So you'll need to modify the project file to point to the proper location.
I'll have a look at adding an example of Win32 Force Feedback to COIS.
Note that when I try to build the OIS static libraries using CB, the compiler throws: "dinput.h No such file or directory". So you'll need to modify the project file to point to the proper location.
I'll have a look at adding an example of Win32 Force Feedback to COIS.
I use code::blocks with ois. In newest ois missing one file, you need to include ois/src/OISException.cpp to project (project->add file) and you need DX SDK.
In project build options select OIS and include in search directories:
C:\Program Files (x86)\Microsoft DirectX SDK (August 2008)\Include
..\includes\win32
..\includes\
then select OIS_DebugDll and in linker settings add dinput8.lib and dxguid.lib from DX SDK. Do same with OIS_ReleaseDll.
P.S. Now just need to add 2 or more joystick support (then printing joystick events):)
In project build options select OIS and include in search directories:
C:\Program Files (x86)\Microsoft DirectX SDK (August 2008)\Include
..\includes\win32
..\includes\
then select OIS_DebugDll and in linker settings add dinput8.lib and dxguid.lib from DX SDK. Do same with OIS_ReleaseDll.
P.S. Now just need to add 2 or more joystick support (then printing joystick events):)
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht