Win8 and mouse events

Hi, I’m trying to implement some basic tutorials to learn how to use cocos2dx with no luck under windows 8.

I’m using visual studio and hooked up these three methods as described in the tutorials:

ccTouchesBegan
ccTouchesMoved
ccTouchesEnded

When I click on the screen these events are never called.

I call the function below on init
//listen for touches
this->setTouchEnabled(true);

but it seems not to be doing anything in particular?

Any ideas?

Martin.

A call to this function solves the issue

void HelloWorld::registerWithTouchDispatcher()
{
CCDirector::sharedDirector()->getTouchDispatcher()->addStandardDelegate(this,0);
}

:slight_smile: