give a name to the touch type enum aswell as explicit values

This commit is contained in:
HJfod 2023-03-30 16:50:38 +03:00
parent 35f7f86e6d
commit e2e1da069d

View file

@ -47,13 +47,13 @@ typedef enum
} ccTouchSelectorFlag; } ccTouchSelectorFlag;
enum { enum ccTouchType {
CCTOUCHBEGAN, CCTOUCHBEGAN = 0,
CCTOUCHMOVED, CCTOUCHMOVED = 1,
CCTOUCHENDED, CCTOUCHENDED = 2,
CCTOUCHCANCELLED, CCTOUCHCANCELLED = 3,
ccTouchMax, ccTouchMax = 4,
}; };
class CCSet; class CCSet;