OIS Integration Tutorial

A forum to store posts deemed exceptionally wise and useful
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

Let's focus on Linux for now. If you downloaded the source instead of using CVS, please try using OIS from CVS:

Code: Select all

cvs -d:pserver:anonymous@wgois.cvs.sourceforge.net:/cvsroot/wgois login
<Enter>
cvs -z3 -d:pserver:anonymous@wgois.cvs.sourceforge.net:/cvsroot/wgois co -P ois
Also, I'm still curious about questions 3 & 4 so please post the output from "ls -l /dev/input/event*" before and after you connect the Joystick.

Me thinking out loud: Now that Irrlicht has Joystick support, would it be better to add Force Feedback also as a compile option? I'd be willing to create the patch and it would be one less library to worry about...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

If you have some idea on how to do force feedback in Irrlicht then show us how.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

It isn't that I'm an expert on Force Feedback, instead I'm fairly certain that I could adapt what OIS is currently doing. And because OIS is licensed under zlib/libpng, I don't think that would be a problem. I would probably use similar interface classes to upload, start, and stop FF effects.

OIS uses DirectInput for FF on Windows so that would be a dependency. Do you think that would be an issue within Irrlicht?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, some investigations about other implementations could help, but I guess that as long as it's only an option for special cases we could still add it. Maybe we can also get a DirectInput joystick option?!
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

hybrid wrote:Well, some investigations about other implementations could help
Agreed.
hybrid wrote:Maybe we can also get a DirectInput joystick option?!
Agree again. I'll do some additional research.
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: OIS Integration Tutorial

Post by netpipe »

https://github.com/wgois/OIS/pull/74 put the tutorial here and also found an issue with microsoft steering wheel forcefeedback not working
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply