gren15
12th May 2009, 14:36
Hi,
I want to trap the mouse click ( or mouse-up) event on MAC.
On windows I used the winEvent and it worked fine. But I am not able to get any examples of the macEvent. I have the function as follows:
bool myclass::macEvent(EventHandlerCallRef eventHandler, EventRef event)
{
// if (event->type == MouseClick) // Want to put in the code to trap mouse clicks
return false;
}
Suggestions on how to proceed will be greatly appreciate.
I also tried using the QT event
void myclass::mouseReleaseEvent(QMouseEvent *mouseEvent)
{
if ((mouseEvent->button() == Qt::LeftButton) ||
(mouseEvent->button() == Qt::RightButton) )
{
// I do my stuff here
}
}
Would this take care of MAC mouse click events?
Please suggest.Thanks!
I want to trap the mouse click ( or mouse-up) event on MAC.
On windows I used the winEvent and it worked fine. But I am not able to get any examples of the macEvent. I have the function as follows:
bool myclass::macEvent(EventHandlerCallRef eventHandler, EventRef event)
{
// if (event->type == MouseClick) // Want to put in the code to trap mouse clicks
return false;
}
Suggestions on how to proceed will be greatly appreciate.
I also tried using the QT event
void myclass::mouseReleaseEvent(QMouseEvent *mouseEvent)
{
if ((mouseEvent->button() == Qt::LeftButton) ||
(mouseEvent->button() == Qt::RightButton) )
{
// I do my stuff here
}
}
Would this take care of MAC mouse click events?
Please suggest.Thanks!