@@ -31,7 +31,7 @@ - (id)init
31
31
_deadTouches = [[NSMutableSet alloc ] init ];
32
32
for (int i = 0 ; i < 10 ; i++)
33
33
{
34
- [_deadTouches addObject: [CCTouch touchWithPlatformTouch :nil ]];
34
+ [_deadTouches addObject: [CCTouch touchWithUITouch :nil ]];
35
35
}
36
36
37
37
_allTouches = [[NSMutableDictionary alloc ] init ];
@@ -47,7 +47,7 @@ - (void)updateTouchesBegan:(NSSet*)touches
47
47
[_currentTouches removeAllObjects ];
48
48
49
49
// Began touches - move touches from dead pool to allTouches
50
- for (PlatformTouch * touch in touches)
50
+ for (UITouch * touch in touches)
51
51
{
52
52
CCTouch* ccTouch = [_deadTouches anyObject ];
53
53
ccTouch.uiTouch = touch;
@@ -58,7 +58,7 @@ - (void)updateTouchesBegan:(NSSet*)touches
58
58
}
59
59
60
60
// Set currentTouches
61
- for (PlatformTouch * touch in touches)
61
+ for (UITouch * touch in touches)
62
62
{
63
63
CCTouch* ccTouch = [_allTouches objectForKey: [NSValue valueWithNonretainedObject: touch]];
64
64
if (ccTouch)
@@ -75,7 +75,7 @@ - (void)updateTouchesMoved:(NSSet*)touches
75
75
[_currentTouches removeAllObjects ];
76
76
77
77
// Set currentTouches
78
- for (PlatformTouch * touch in touches)
78
+ for (UITouch * touch in touches)
79
79
{
80
80
CCTouch* ccTouch = [_allTouches objectForKey: [NSValue valueWithNonretainedObject: touch]];
81
81
if (ccTouch)
@@ -94,7 +94,7 @@ - (void)updateTouchesEnded:(NSSet*)touches
94
94
NSMutableArray * keys = [[NSMutableArray alloc ] init ];
95
95
96
96
// Set currentTouches
97
- for (PlatformTouch * touch in touches)
97
+ for (UITouch * touch in touches)
98
98
{
99
99
CCTouch* ccTouch = [_allTouches objectForKey: [NSValue valueWithNonretainedObject: touch]];
100
100
if (ccTouch)
@@ -109,7 +109,7 @@ - (void)updateTouchesEnded:(NSSet*)touches
109
109
110
110
111
111
// Ended touches - remove touches from allTouches and place them back into the deadpool
112
- NSArray * deadTouches = [_allTouches objectsForKeys: keys notFoundMarker: [CCTouch touchWithPlatformTouch :nil ]];
112
+ NSArray * deadTouches = [_allTouches objectsForKeys: keys notFoundMarker: [CCTouch touchWithUITouch :nil ]];
113
113
[_deadTouches addObjectsFromArray: deadTouches];
114
114
[_allTouches removeObjectsForKeys: keys];
115
115
}
@@ -121,7 +121,7 @@ - (void)updateTouchesCancelled:(NSSet*)touches
121
121
NSMutableArray * keys = [[NSMutableArray alloc ] init ];
122
122
123
123
// Set currentTouches
124
- for (PlatformTouch * touch in touches)
124
+ for (UITouch * touch in touches)
125
125
{
126
126
CCTouch* ccTouch = [_allTouches objectForKey: [NSValue valueWithNonretainedObject: touch]];
127
127
if (ccTouch)
@@ -136,7 +136,7 @@ - (void)updateTouchesCancelled:(NSSet*)touches
136
136
137
137
138
138
// Ended touches - remove touches from allTouches and place them back into the deadpool
139
- NSArray * deadTouches = [_allTouches objectsForKeys: keys notFoundMarker: [CCTouch touchWithPlatformTouch :nil ]];
139
+ NSArray * deadTouches = [_allTouches objectsForKeys: keys notFoundMarker: [CCTouch touchWithUITouch :nil ]];
140
140
[_deadTouches addObjectsFromArray: deadTouches];
141
141
[_allTouches removeObjectsForKeys: keys];
142
142
}
0 commit comments