If anyone has a solution I would like to hear it
mouse release
mouse release
Is there anyway to detect with your Eventreceiver if a mousebutton is released? Because I couldn't find anything for this.
If anyone has a solution I would like to hear it

If anyone has a solution I would like to hear it
Looking into documentation is a nice habit you shoul try it. (c)
http://irrlicht.sourceforge.net/docu/na ... .html#a179
http://irrlicht.sourceforge.net/docu/na ... .html#a179
Tomasz Nowakowski
Openoko - www.openoko.pl
Openoko - www.openoko.pl
EMIE_LMOUSE_LEFT_UP means that that button is not pressed. This does not mean that that button was released !!!.
EMIE_LMOUSE_PRESSED_DOWN Left mouse button was pressed down.
EMIE_RMOUSE_PRESSED_DOWN Right mouse button was pressed down.
EMIE_MMOUSE_PRESSED_DOWN Middle mouse button was pressed down.
EMIE_LMOUSE_LEFT_UP Left mouse button was left up.
EMIE_RMOUSE_LEFT_UP Right mouse button was left up.
EMIE_MMOUSE_LEFT_UP Middle mouse button was left up.
EMIE_MOUSE_MOVED The mouse cursor changed its position.
EMIE_MOUSE_WHEEL The mouse wheel was moved.
But no EMIE_LMOUSE_RELEASED or something. so could anyone think of some code to detect if a mousebutton is released.
Thanks in advance
EMIE_LMOUSE_PRESSED_DOWN Left mouse button was pressed down.
EMIE_RMOUSE_PRESSED_DOWN Right mouse button was pressed down.
EMIE_MMOUSE_PRESSED_DOWN Middle mouse button was pressed down.
EMIE_LMOUSE_LEFT_UP Left mouse button was left up.
EMIE_RMOUSE_LEFT_UP Right mouse button was left up.
EMIE_MMOUSE_LEFT_UP Middle mouse button was left up.
EMIE_MOUSE_MOVED The mouse cursor changed its position.
EMIE_MOUSE_WHEEL The mouse wheel was moved.
But no EMIE_LMOUSE_RELEASED or something. so could anyone think of some code to detect if a mousebutton is released.
Thanks in advance
> EMIE_LMOUSE_LEFT_UP means that that button is not pressed. This does
> not mean that that button was released !!!.
So just tell me how can system generate event on not pressing mouse button ?
OK, time to stop joking. Just add following lines before your event reciver so it can detect if a mouse button is released.Sorry, but i just couldn't resist 
> not mean that that button was released !!!.
So just tell me how can system generate event on not pressing mouse button ?
OK, time to stop joking. Just add following lines before your event reciver so it can detect if a mouse button is released.
Code: Select all
#define EMIE_LMOUSE_RELEASED EMIE_LMOUSE_LEFT_UP
#define EMIE_RMOUSE_RELEASED EMIE_RMOUSE_LEFT_UP
#define EMIE_MMOUSE_RELEASED EMIE_MMOUSE_LEFT_UP
Tomasz Nowakowski
Openoko - www.openoko.pl
Openoko - www.openoko.pl
If you have the two states of pressed down and left up you have the falling edge of pressed down don't you? The rising edge of left up ( which is what both are activated by ) is the falling edge of pressed down as they are the only two possible states. A simple moniter to detect when this rising edge occurs is all that is necessary.
Heh, I didn't know those terms were isolated to electrics
I guess that means you're in the industry as well?
Yeah, I'm a wireman in a machine maker company, I do quite a bit of programming there too due to the lack of staff, which is mostly due to the crappy state of engineering in general. Good fun, a lot of my problems with stuff I want to do in 2080 has oddly enough been solved by having the same problems in work and solving them there, most recently the problem of having a move buffer which I have now solved and put in the latest release.
*** For non sparky's
***
Rising and falling edge refers to the creation and decay of an electrical pulse. E.g.
/------\
The creation is the rising edge, when the signal is starting to be sent, the pitch is the length of the pulse and the falling edge is when the pulse stops being sent. To see this effect, click a button in whatever OS you use and try to figure out which edge it's function is being called on. It should be the falling edge
By having the mouse button have two states, you have the advantage of being able to detect both edges of the mouse button being pressed. This is a literal pulse from the mouse to the computer which you can moniter through Irrlicht ( which moniter's it from Windows, yada yada yada ).
Yeah, I'm a wireman in a machine maker company, I do quite a bit of programming there too due to the lack of staff, which is mostly due to the crappy state of engineering in general. Good fun, a lot of my problems with stuff I want to do in 2080 has oddly enough been solved by having the same problems in work and solving them there, most recently the problem of having a move buffer which I have now solved and put in the latest release.
*** For non sparky's
Rising and falling edge refers to the creation and decay of an electrical pulse. E.g.
/------\
The creation is the rising edge, when the signal is starting to be sent, the pitch is the length of the pulse and the falling edge is when the pulse stops being sent. To see this effect, click a button in whatever OS you use and try to figure out which edge it's function is being called on. It should be the falling edge
By having the mouse button have two states, you have the advantage of being able to detect both edges of the mouse button being pressed. This is a literal pulse from the mouse to the computer which you can moniter through Irrlicht ( which moniter's it from Windows, yada yada yada ).