Using OIS?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Kannon
Posts: 20
Joined: Wed Jun 14, 2006 7:27 am

Using OIS?

Post by Kannon »

Largely for the sake of not having to redo this all later, I would like to use OIS to grab input, and aim that at the irrlicht functions. (From what I read on the OIS forum, it could well make remapping easier as well.)

My question is fairly straightforward, how would one go about doing that? More specifically, are there any major pitfalls a newbie may not be aware of when grabbing something from one library, and redirecting it to another? Mainly what I haven't been able to find, is what I do with the event between OIS and the event handler of irrlicht. Knowing me, it's a simple answer.
"That is not dead which can eternal lie, And with strange aeons even death may die."
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Read input, create an SEvent to represent that input, and then pass the event to the device [just like is done by the IrrlichtDevice implementations].

Travis
Post Reply