Page 1 of 1

Mouse input when using Irrlicht Engine

Posted: Fri Jul 07, 2006 7:55 pm
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).

Posted: Fri Jul 07, 2006 8:58 pm
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