Projects > cpp > Issues > Bug #3889

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Rename cc.Touch.getLocation() to cc.Touch.getPosition()?

Bug #3889 [Closed]
ZippoLag 2014-02-03 17:55 . Updated over 9 years ago

In all nodes and sprites, etc, the method for getting the cc.Point of the position of said element is always called getPosition, but for touch (and mouse) events it is called getLocation. Is there a reason for this difference? If not, wouldn't it be better -for consistency- to add a method getPosition to take over this responsibility and deprecate getLocation in cc.Touch with a waring (obviously, not just deleting it, in order to not break existing games)? 2014-10-08 02:55

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2014-02-03
Due date:
% Done:


Target version:-