Haven't posted for a while, cause I decided I was asking too many questions, and being concerned with any minor detail! Practice practice.
Understanding code or algorithms is great, but practically researching, implementing and testing the code yourself is the only way to learn properly.
Firstly I want to say thank you to CuteAlien for mentioning me in the change log, about the Mouse Double & Triple Click. Thanks.
But I have a problem with it, unless I'm wrong.
I only just started looking at the mouse handling changes yesterday. I been working on other aspects less to do with the Irrlicht engine and more to do with polygons and sprites and scrolling background for the 2d game engine I'm working on... gradually...
The point is, now there is only a double click for the left mouse button!
Am I wrong? I hope so.
In my OnEvent handler I tried the following:
Code: Select all
//! mouse button was double clicked.
case EMIE_MOUSE_DOUBLE_CLICK:
if (event.MouseInput.isLeftPressed())
MouseButtonDblClick(event.MouseInput.X, event.MouseInput.Y, MOUSE_BUTTON_LEFT);
else if (event.MouseInput.isRightPressed())
MouseButtonDblClick(event.MouseInput.X, event.MouseInput.Y, MOUSE_BUTTON_RIGHT);
else if (event.MouseInput.isMiddlePressed())
MouseButtonDblClick(event.MouseInput.X, event.MouseInput.Y, MOUSE_BUTTON_MIDDLE);
break;
I suppose it's not common to use double click with other buttons... but why shouldn't it be available?
If it's for one button, it should be for all in my opinion.
The way I had implemented it, you could do it with any button. Even with the extra (X) buttons if they were implemented.
So, am I wrong?