src/video/uikit/SDL_uikitview.m
changeset 8477 ad08f0d710f3
parent 8460 f483e8bdae3c
parent 7191 75360622e65f
child 8535 e8ee0708ef5c
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Sat Jun 08 14:34:09 2013 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Mon Aug 12 22:29:55 2013 -0400
     1.3 @@ -30,10 +30,10 @@
     1.4  
     1.5  #if SDL_IPHONE_KEYBOARD
     1.6  #include "keyinfotable.h"
     1.7 +#endif
     1.8  #include "SDL_uikitappdelegate.h"
     1.9  #include "SDL_uikitmodes.h"
    1.10  #include "SDL_uikitwindow.h"
    1.11 -#endif
    1.12  
    1.13  @implementation SDL_uikitview
    1.14  
    1.15 @@ -63,11 +63,11 @@
    1.16  {
    1.17      CGPoint point = [touch locationInView: self];
    1.18  
    1.19 -    // Get the display scale and apply that to the input coordinates
    1.20 +    /* Get the display scale and apply that to the input coordinates */
    1.21      SDL_Window *window = self->viewcontroller.window;
    1.22      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
    1.23      SDL_DisplayModeData *displaymodedata = (SDL_DisplayModeData *) display->current_mode.driverdata;
    1.24 -    
    1.25 +
    1.26      if (normalize) {
    1.27          CGRect bounds = [self bounds];
    1.28          point.x /= bounds.size.width;
    1.29 @@ -99,9 +99,10 @@
    1.30  
    1.31          CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
    1.32  #ifdef IPHONE_TOUCH_EFFICIENT_DANGEROUS
    1.33 -        // FIXME: TODO: Using touch as the fingerId is potentially dangerous
    1.34 -        // It is also much more efficient than storing the UITouch pointer
    1.35 -        // and comparing it to the incoming event.
    1.36 +        /* FIXME: TODO: Using touch as the fingerId is potentially dangerous
    1.37 +         * It is also much more efficient than storing the UITouch pointer
    1.38 +         * and comparing it to the incoming event.
    1.39 +         */
    1.40          SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch),
    1.41                        SDL_TRUE, locationInView.x, locationInView.y, 1.0f);
    1.42  #else