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;
enum {
CCTOUCHBEGAN,
CCTOUCHMOVED,
CCTOUCHENDED,
CCTOUCHCANCELLED,
enum ccTouchType {
CCTOUCHBEGAN = 0,
CCTOUCHMOVED = 1,
CCTOUCHENDED = 2,
CCTOUCHCANCELLED = 3,
ccTouchMax,
ccTouchMax = 4,
};
class CCSet;