Mercurial > sdl-ios-xcode
comparison src/video/uikit/SDL_uikitview.m @ 4678:f8431f66613d
Added SDL_TouchID, SDL_FingerID, SDL_GestureID types. Converted to integer cioordinates (<- not working).
author | jimtla |
---|---|
date | Sat, 31 Jul 2010 20:02:54 +0400 |
parents | 31607094315c |
children | c24ba2cc9583 |
comparison
equal
deleted
inserted
replaced
4677:31607094315c | 4678:f8431f66613d |
---|---|
56 //touch.driverdata = SDL_malloc(sizeof(EventTouchData)); | 56 //touch.driverdata = SDL_malloc(sizeof(EventTouchData)); |
57 //EventTouchData* data = (EventTouchData*)(touch.driverdata); | 57 //EventTouchData* data = (EventTouchData*)(touch.driverdata); |
58 | 58 |
59 touch.x_min = 0; | 59 touch.x_min = 0; |
60 touch.x_max = frame.size.width; | 60 touch.x_max = frame.size.width; |
61 touch.xres = touch.x_max - touch.x_min; | 61 touch.native_xres = touch.x_max - touch.x_min; |
62 touch.y_min = 0; | 62 touch.y_min = 0; |
63 touch.y_max = frame.size.height; | 63 touch.y_max = frame.size.height; |
64 touch.yres = touch.y_max - touch.y_min; | 64 touch.native_yres = touch.y_max - touch.y_min; |
65 touch.pressure_min = 0; | 65 touch.pressure_min = 0; |
66 touch.pressure_max = 1; | 66 touch.pressure_max = 1; |
67 touch.pressureres = touch.pressure_max - touch.pressure_min; | 67 touch.native_pressureres = touch.pressure_max - touch.pressure_min; |
68 | 68 |
69 | 69 |
70 touchId = SDL_AddTouch(&touch, "IPHONE SCREEN"); | 70 touchId = SDL_AddTouch(&touch, "IPHONE SCREEN"); |
71 #endif | 71 #endif |
72 | 72 |