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 10 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)?

walzer@cocos2d-x.org 2014-10-08 02:55

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

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8330

Atom PDF

Status:Closed
Start date:2014-02-03
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-