Lines Matching refs:touch

183 - (SDL_TouchDeviceType)touchTypeForTouch:(UITouch *)touch
186 if ([touch respondsToSelector:@selector((type))]) {
187 if (touch.type == UITouchTypeIndirect) {
207 - (CGPoint)touchLocation:(UITouch *)touch shouldNormalize:(BOOL)normalize
209 CGPoint point = [touch locationInView:self];
220 - (float)pressureForTouch:(UITouch *)touch
223 if ([touch respondsToSelector:@selector(force)]) {
224 return (float) touch.force;
233 for (UITouch *touch in touches) {
238 if (touch.type == UITouchTypeIndirectPointer) {
267 SDL_TouchDeviceType touchType = [self touchTypeForTouch:touch];
269 float pressure = [self pressureForTouch:touch];
275 /* FIXME, need to send: int clicks = (int) touch.tapCount; ? */
277 CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
278 SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch), sdlwindow,
286 for (UITouch *touch in touches) {
291 if (touch.type == UITouchTypeIndirectPointer) {
320 SDL_TouchDeviceType touchType = [self touchTypeForTouch:touch];
322 float pressure = [self pressureForTouch:touch];
328 /* FIXME, need to send: int clicks = (int) touch.tapCount; ? */
330 CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
331 SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch), sdlwindow,
344 for (UITouch *touch in touches) {
349 if (touch.type == UITouchTypeIndirectPointer) {
356 SDL_TouchDeviceType touchType = [self touchTypeForTouch:touch];
358 float pressure = [self pressureForTouch:touch];
364 CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
365 SDL_SendTouchMotion(touchId, (SDL_FingerID)((size_t)touch), sdlwindow,