how to get mouse keydown and keyup event for gui element
how to get mouse keydown and keyup event for gui element
I would like to recieve event whenever uses holds down mouse button over gui element (e.g IGUIImage) and releases button.. is there a way to do it? I didn't find a related event in EGUI_EVENT_TYPE enum.
there is a tutorial (5. User Interface). you should read it ... i also belive that this is no "advanced" question ...
if you want to chack if a mouse button is pressed there is e.g the "EMIE_LMOUSE_PRESSED_DOWN" event ... your question about gui i dont understand ... sorry ... maybe that could help you "EGET_ELEMENT_HOVERED" ... it is used if the mouse is over a gui element ...
regards zeus
if you want to chack if a mouse button is pressed there is e.g the "EMIE_LMOUSE_PRESSED_DOWN" event ... your question about gui i dont understand ... sorry ... maybe that could help you "EGET_ELEMENT_HOVERED" ... it is used if the mouse is over a gui element ...
regards zeus
Is there any posible answer ... i'm sick of it ...
http://irrlicht.sourceforge.net/phpBB2/ ... 919#215919
thanks ...
http://irrlicht.sourceforge.net/phpBB2/ ... 919#215919
thanks ...
zeus dude,
i want to get left mouse button down and up messages when mouse pointer is over a gui element. so I want a gui event which tells me "hey left mouse down/up"... i would like to know is this already implemented, or should I find a work around for myself, and r u guys planing to implement this?
i want to get left mouse button down and up messages when mouse pointer is over a gui element. so I want a gui event which tells me "hey left mouse down/up"... i would like to know is this already implemented, or should I find a work around for myself, and r u guys planing to implement this?
@hybrid: thanks
@dehseth: öhm ... oky ... now i'm realy puzzeld ... if the mouse is over a gui element you can check it with "hover" ... if the mouse button is down you can check it with "mouse down" ... i think there is no need of "both" at the same time ... for what do you need that double check ? ...
regards
@dehseth: öhm ... oky ... now i'm realy puzzeld ... if the mouse is over a gui element you can check it with "hover" ... if the mouse button is down you can check it with "mouse down" ... i think there is no need of "both" at the same time ... for what do you need that double check ? ...
regards
Is there any posible answer ... i'm sick of it ...
http://irrlicht.sourceforge.net/phpBB2/ ... 919#215919
thanks ...
http://irrlicht.sourceforge.net/phpBB2/ ... 919#215919
thanks ...
ok then, seems like I need to implement it by myself...
and there is a new problem! this is what I do:
I move mouse cursor onto my image and I get these events:
EGET_ELEMENT_HOVERED
EGET_ELEMENT_LEFT
EGET_ELEMENT_HOVERED
there's an extra tow messages in here...
And after I click and hold left mouse button over my image I got this:
EMIE_LMOUSE_PRESSED_DOWN
EGET_ELEMENT_LEFT
EGET_ELEMENT_HOVERED
is this a bug hybrid?
and there is a new problem! this is what I do:
I move mouse cursor onto my image and I get these events:
EGET_ELEMENT_HOVERED
EGET_ELEMENT_LEFT
EGET_ELEMENT_HOVERED
there's an extra tow messages in here...
And after I click and hold left mouse button over my image I got this:
EMIE_LMOUSE_PRESSED_DOWN
EGET_ELEMENT_LEFT
EGET_ELEMENT_HOVERED
is this a bug hybrid?
code?
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Please don't spread your questions by duplicating them into several threads. We cannot answer the same question in many places, and you won' get more answers by simply cross-posting to the bug forum. I'll move this thread to the bug forum when it's necessary.
The information, that you did not move the mouse, was simply missing before. So it looked more than correct to me. I'll have to check if it happens here as well. But Virion is right, giving a simple code sample would help. It could, e.g., depend on the type of GUI element. So it would reduce the discussions if you directly tell us what you use. And make sure you give a minimal example.
The information, that you did not move the mouse, was simply missing before. So it looked more than correct to me. I'll have to check if it happens here as well. But Virion is right, giving a simple code sample would help. It could, e.g., depend on the type of GUI element. So it would reduce the discussions if you directly tell us what you use. And make sure you give a minimal example.