Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoawindow.m @ 4674:89d5e2201b00
Prevented SDL_SendDown from sending on nonexistent touch devices.
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Thu, 29 Jul 2010 12:24:34 -0400 |
parents | c17ac64abb70 |
children | 641c13b0ce5f |
comparison
equal
deleted
inserted
replaced
4673:c17ac64abb70 | 4674:89d5e2201b00 |
---|---|
311 touch.pressure_min = 0; | 311 touch.pressure_min = 0; |
312 touch.pressure_max = 1; | 312 touch.pressure_max = 1; |
313 touch.pressureres = touch.pressure_max - touch.pressure_min; | 313 touch.pressureres = touch.pressure_max - touch.pressure_min; |
314 | 314 |
315 if (SDL_AddTouch(&touch, "") < 0) { | 315 if (SDL_AddTouch(&touch, "") < 0) { |
316 return; | 316 continue; |
317 } | 317 } |
318 } | 318 } |
319 float x = [touch normalizedPosition].x; | 319 float x = [touch normalizedPosition].x; |
320 float y = [touch normalizedPosition].y; | 320 float y = [touch normalizedPosition].y; |
321 long fingerId = (long)[touch identity]; | 321 long fingerId = (long)[touch identity]; |