Mouse input when using Irrlicht Engine

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
Mequa
Posts: 13
Joined: Fri Jul 07, 2006 7:39 pm

Mouse input when using Irrlicht Engine

Post by Mequa »

Hi, I'm using Dev-C++ with Irrlicht engine.
Naturally, I'm using C++...
I was wondering what the best way would be to capture mouse input (left/right/middle button clicks, and mouse wheel input if possible) in an Irrlicht project.
In particular, I'd like to capture mouse input from left, right and middle mouse buttons when using the FPS camera (which steers using the mouse).
hardgeus
Posts: 28
Joined: Tue May 23, 2006 12:55 am
Contact:

Post by hardgeus »

http://irrlicht.sourceforge.net/tut004.html

That tutorial has info about capturing keyboard events. capturing mouse events is done through the same event interface.

If you're going to be doing your own event handling for your camera, you probably don't want to use the built-in FPS camera...the built in FPS camera is good for getting a quick demo up and running, but if you have intentions of custom control over your camera, you're going to want to make your own camera class that inherits from CCameraSceneNode
Post Reply