Is it possible to detect when the right mouse button was clicked? I need to get the event and differentiate from left mouse button clicks, which I currently manage with ccTouchBegan.
Good question. I would like to know that too!
Go to cocos2dx/platform/XYZ/CCEGLView.cppYou can modify void mouseButtonEventHandle(int iMouseID,int iMouseState) to forward iMouseID and iMouseState somewhere else (like notifiaction center, some singleton, etc.).
void mouseButtonEventHandle(int iMouseID,int iMouseState)