Mouse Event handlers?
Posted: Thu Feb 03, 2005 10:06
I have a question related to event handlers. Yesterday, I implemented a simple picking function. I subscribed a Window::EventMouseButtonUp event to the root window of my GUI. Now here is my problem: The signature of my picking handler is:
Since the function is only called when a MouseButtonUp event was fired, I tried to get a pointer or a reference to MouseEventArgs, but as the parameter is a EventArgs&, no type conversion is possible. How can I obtain the correct MouseEventArgs in my handler function?
Code: Select all
bool defaultPickingHandler(EventArgs& e)
Since the function is only called when a MouseButtonUp event was fired, I tried to get a pointer or a reference to MouseEventArgs, but as the parameter is a EventArgs&, no type conversion is possible. How can I obtain the correct MouseEventArgs in my handler function?