Merge pull request #12539 from jianglong0156/winrtMouse

[ci skip]winrt not suppot mouse
This commit is contained in:
pandamicro 2015-06-25 17:47:25 +08:00
commit 246aa619aa
1 changed files with 6 additions and 0 deletions

View File

@ -1481,6 +1481,12 @@ cc._initSys = function(config, CONFIG_KEY){
// desktop
capabilities["keyboard"] = true;
capabilities["mouse"] = true;
// winrt can't suppot mouse in current version
if (platform === locSys.WINRT)
{
capabilities["touches"] = true;
capabilities["mouse"] = false;
}
}
/**