mouse event

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
emadof85
Posts: 31
Joined: Sun May 25, 2014 6:10 pm

mouse event

Post by emadof85 »

i use visual studio 2010 and c++ .net to create the GUI;
i draw the scene into a panel, before load any scene the panel can capture any mouse event,
but when I load scene , the panel doesn't catch any mouse event , why ???
CuteAlien
Admin
Posts: 9670
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: mouse event

Post by CuteAlien »

While the scene is loading your event-receiver is never called. So events are put in the pipeline in that time.
And please stop posting all your questions into Advanced help, they really belong into the beginner section.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
emadof85
Posts: 31
Joined: Sun May 25, 2014 6:10 pm

Re: mouse event

Post by emadof85 »

I'm sorry
next time I will post in beginner section.
you say :While the scene is loading your event-receiver is never called. So events are put in the pipeline in that time.
you are right but after finish loading the receiver doesn't catch mouse events, I tried to use panel mouse move event which is in the form, but the same problem appear
help me please and approve that my posts really belong into the beginner section
CuteAlien
Admin
Posts: 9670
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: mouse event

Post by CuteAlien »

The reason I want your questions in beginner has nothing to do with the technical difficulty of the task. The problem is that you are still learning how to ask questions in a way that others are able to help you. That's a pretty typical problem when you're new to programming as you haven't been yet much on the other side (trying to answer questions where all the information you need to answer the questions has to be pulled out bit by bit from the questioner). And we just prefer to have the advanced forums about technical threads and not about long discussions about how to even ask questions in a technical forum in a way that makes it possible to answer them. While we do that regularly in the beginner forums.

Take a look at your first question and put yourself in our shoes. Try to figure out what you are doing from just your own post. Which code are you using? What could go wrong in that code? Uhm.. which code you might ask by now...

Technically I'm sure it's complicated. I mean you are trying to combine a pure c++ lib inside .net code and mixing 2 different gui-systems. But that is extremely general information - for all we know so far you might try to mix them by throwing pieces of paper on the wall and hope they stick :-) We don't see what you are coding - the only information we have is exactly that which you post.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply