Fixed spacing, adding vim spacing hints
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Feb 2011 09:02:53 -0800
changeset 5133b915b3181cc2
parent 5132 5f09cb749d75
child 5134 c63b901d97ab
Fixed spacing, adding vim spacing hints
src/video/uikit/SDL_uikitappdelegate.h
src/video/uikit/SDL_uikitkeyboard.h
src/video/uikit/SDL_uikitopengles.h
src/video/uikit/SDL_uikitopenglview.h
src/video/uikit/SDL_uikitview.h
src/video/uikit/jumphack.h
src/video/uikit/keyinfotable.h
     1.1 --- a/src/video/uikit/SDL_uikitappdelegate.h	Tue Feb 01 09:00:47 2011 -0800
     1.2 +++ b/src/video/uikit/SDL_uikitappdelegate.h	Tue Feb 01 09:02:53 2011 -0800
     1.3 @@ -31,3 +31,5 @@
     1.4  
     1.5  @end
     1.6  /* *INDENT-ON* */
     1.7 +
     1.8 +/* vi: set ts=4 sw=4 expandtab: */
     2.1 --- a/src/video/uikit/SDL_uikitkeyboard.h	Tue Feb 01 09:00:47 2011 -0800
     2.2 +++ b/src/video/uikit/SDL_uikitkeyboard.h	Tue Feb 01 09:02:53 2011 -0800
     2.3 @@ -29,3 +29,5 @@
     2.4  extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_Window * window);
     2.5  
     2.6  #endif
     2.7 +
     2.8 +/* vi: set ts=4 sw=4 expandtab: */
     3.1 --- a/src/video/uikit/SDL_uikitopengles.h	Tue Feb 01 09:00:47 2011 -0800
     3.2 +++ b/src/video/uikit/SDL_uikitopengles.h	Tue Feb 01 09:02:53 2011 -0800
     3.3 @@ -36,3 +36,5 @@
     3.4  extern int UIKit_GL_LoadLibrary(_THIS, const char *path);
     3.5  
     3.6  #endif
     3.7 +
     3.8 +/* vi: set ts=4 sw=4 expandtab: */
     4.1 --- a/src/video/uikit/SDL_uikitopenglview.h	Tue Feb 01 09:00:47 2011 -0800
     4.2 +++ b/src/video/uikit/SDL_uikitopenglview.h	Tue Feb 01 09:02:53 2011 -0800
     4.3 @@ -63,3 +63,5 @@
     4.4  
     4.5  @end
     4.6  /* *INDENT-ON* */
     4.7 +
     4.8 +/* vi: set ts=4 sw=4 expandtab: */
     5.1 --- a/src/video/uikit/SDL_uikitview.h	Tue Feb 01 09:00:47 2011 -0800
     5.2 +++ b/src/video/uikit/SDL_uikitview.h	Tue Feb 01 09:02:53 2011 -0800
     5.3 @@ -38,17 +38,17 @@
     5.4  #endif
     5.5  
     5.6  #ifdef FIXED_MULTITOUCH
     5.7 -	long touchId;
     5.8 +    long touchId;
     5.9  #ifndef IPHONE_TOUCH_EFFICIENT_DANGEROUS
    5.10 -	UITouch *finger[MAX_SIMULTANEOUS_TOUCHES];
    5.11 +    UITouch *finger[MAX_SIMULTANEOUS_TOUCHES];
    5.12  #endif
    5.13  #endif
    5.14  
    5.15  #if SDL_IPHONE_KEYBOARD
    5.16 -	UITextField *textField;
    5.17 -	BOOL keyboardVisible;
    5.18 -#endif	
    5.19 -	
    5.20 +    UITextField *textField;
    5.21 +    BOOL keyboardVisible;
    5.22 +#endif    
    5.23 +    
    5.24  }
    5.25  - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    5.26  - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    5.27 @@ -63,3 +63,5 @@
    5.28  
    5.29  @end
    5.30  /* *INDENT-ON* */
    5.31 +
    5.32 +/* vi: set ts=4 sw=4 expandtab: */
     6.1 --- a/src/video/uikit/jumphack.h	Tue Feb 01 09:00:47 2011 -0800
     6.2 +++ b/src/video/uikit/jumphack.h	Tue Feb 01 09:02:53 2011 -0800
     6.3 @@ -14,3 +14,5 @@
     6.4  extern jmp_buf *jump_env(void);
     6.5  
     6.6  #endif
     6.7 +
     6.8 +/* vi: set ts=4 sw=4 expandtab: */
     7.1 --- a/src/video/uikit/keyinfotable.h	Tue Feb 01 09:00:47 2011 -0800
     7.2 +++ b/src/video/uikit/keyinfotable.h	Tue Feb 01 09:02:53 2011 -0800
     7.3 @@ -26,10 +26,10 @@
     7.4  #include "SDL_scancode.h"
     7.5  
     7.6  /*
     7.7 -	This file is used by the keyboard code in SDL_uikitview.m to convert between characters
     7.8 -	passed in from the iPhone's virtual keyboard, and tuples of SDL_ScanCodes and SDL_keymods.
     7.9 -	For example unicharToUIKeyInfoTable['a'] would give you the scan code and keymod for lower
    7.10 -	case a.
    7.11 +    This file is used by the keyboard code in SDL_uikitview.m to convert between characters
    7.12 +    passed in from the iPhone's virtual keyboard, and tuples of SDL_ScanCodes and SDL_keymods.
    7.13 +    For example unicharToUIKeyInfoTable['a'] would give you the scan code and keymod for lower
    7.14 +    case a.
    7.15  */
    7.16  
    7.17  typedef struct
    7.18 @@ -74,22 +74,22 @@
    7.19  /*  30 */ {   SDL_SCANCODE_UNKNOWN, 0 },
    7.20  /*  31 */ {   SDL_SCANCODE_UNKNOWN, 0 },
    7.21  /*  32 */ {   SDL_SCANCODE_SPACE, 0 },
    7.22 -/*  33 */ {   SDL_SCANCODE_1,	KMOD_SHIFT },		/* plus shift modifier '!' */
    7.23 -/*  34 */ {   SDL_SCANCODE_APOSTROPHE, KMOD_SHIFT },	/* plus shift modifier '"' */
    7.24 -/*  35 */ {   SDL_SCANCODE_3, KMOD_SHIFT },			/* plus shift modifier '#' */
    7.25 -/*  36 */ {   SDL_SCANCODE_4, KMOD_SHIFT },			/* plus shift modifier '$' */
    7.26 -/*  37 */ {   SDL_SCANCODE_5, KMOD_SHIFT },			/* plus shift modifier '%' */
    7.27 -/*  38 */ {   SDL_SCANCODE_7, KMOD_SHIFT },			/* plus shift modifier '&' */
    7.28 -/*  39 */ {   SDL_SCANCODE_APOSTROPHE, 0 },	/* '''					   */
    7.29 -/*  40 */ {   SDL_SCANCODE_9, KMOD_SHIFT },	 		/* plus shift modifier '(' */
    7.30 -/*  41 */ {   SDL_SCANCODE_0, KMOD_SHIFT },			/* plus shift modifier ')' */
    7.31 -/*  42 */ {   SDL_SCANCODE_8, KMOD_SHIFT },			/* '*' */
    7.32 -/*  43 */ {   SDL_SCANCODE_EQUALS, KMOD_SHIFT },	/* plus shift modifier '+' */
    7.33 -/*  44 */ {   SDL_SCANCODE_COMMA, 0 },		/* ','					   */
    7.34 -/*  45 */ {   SDL_SCANCODE_MINUS, 0 },		/* '-'					   */
    7.35 -/*  46 */ {   SDL_SCANCODE_PERIOD, 0 },		/* '.'					   */
    7.36 -/*  47 */ {   SDL_SCANCODE_SLASH, 0 },		/* '/'					   */
    7.37 -/*  48 */ {   SDL_SCANCODE_0, 0	},		
    7.38 +/*  33 */ {   SDL_SCANCODE_1,    KMOD_SHIFT },        /* plus shift modifier '!' */
    7.39 +/*  34 */ {   SDL_SCANCODE_APOSTROPHE, KMOD_SHIFT },    /* plus shift modifier '"' */
    7.40 +/*  35 */ {   SDL_SCANCODE_3, KMOD_SHIFT },            /* plus shift modifier '#' */
    7.41 +/*  36 */ {   SDL_SCANCODE_4, KMOD_SHIFT },            /* plus shift modifier '$' */
    7.42 +/*  37 */ {   SDL_SCANCODE_5, KMOD_SHIFT },            /* plus shift modifier '%' */
    7.43 +/*  38 */ {   SDL_SCANCODE_7, KMOD_SHIFT },            /* plus shift modifier '&' */
    7.44 +/*  39 */ {   SDL_SCANCODE_APOSTROPHE, 0 },    /* '''                       */
    7.45 +/*  40 */ {   SDL_SCANCODE_9, KMOD_SHIFT },             /* plus shift modifier '(' */
    7.46 +/*  41 */ {   SDL_SCANCODE_0, KMOD_SHIFT },            /* plus shift modifier ')' */
    7.47 +/*  42 */ {   SDL_SCANCODE_8, KMOD_SHIFT },            /* '*' */
    7.48 +/*  43 */ {   SDL_SCANCODE_EQUALS, KMOD_SHIFT },    /* plus shift modifier '+' */
    7.49 +/*  44 */ {   SDL_SCANCODE_COMMA, 0 },        /* ','                       */
    7.50 +/*  45 */ {   SDL_SCANCODE_MINUS, 0 },        /* '-'                       */
    7.51 +/*  46 */ {   SDL_SCANCODE_PERIOD, 0 },        /* '.'                       */
    7.52 +/*  47 */ {   SDL_SCANCODE_SLASH, 0 },        /* '/'                       */
    7.53 +/*  48 */ {   SDL_SCANCODE_0, 0    },        
    7.54  /*  49 */ {   SDL_SCANCODE_1, 0 },
    7.55  /*  50 */ {   SDL_SCANCODE_2, 0 },
    7.56  /*  51 */ {   SDL_SCANCODE_3, 0 },
    7.57 @@ -99,14 +99,14 @@
    7.58  /*  55 */ {   SDL_SCANCODE_7, 0 },
    7.59  /*  56 */ {   SDL_SCANCODE_8, 0 },
    7.60  /*  57 */ {   SDL_SCANCODE_9, 0 },
    7.61 -/*  58 */ {   SDL_SCANCODE_SEMICOLON,  KMOD_SHIFT },	/* plus shift modifier ';' */
    7.62 +/*  58 */ {   SDL_SCANCODE_SEMICOLON,  KMOD_SHIFT },    /* plus shift modifier ';' */
    7.63  /*  59 */ {   SDL_SCANCODE_SEMICOLON, 0 },
    7.64 -/*  60 */ {   SDL_SCANCODE_COMMA,  KMOD_SHIFT },	 	/* plus shift modifier '<' */
    7.65 +/*  60 */ {   SDL_SCANCODE_COMMA,  KMOD_SHIFT },         /* plus shift modifier '<' */
    7.66  /*  61 */ {   SDL_SCANCODE_EQUALS, 0 },
    7.67 -/*  62 */ {   SDL_SCANCODE_PERIOD,  KMOD_SHIFT },		/* plus shift modifier '>' */
    7.68 -/*  63 */ {   SDL_SCANCODE_SLASH,  KMOD_SHIFT },		/* plus shift modifier '?' */
    7.69 -/*  64 */ {   SDL_SCANCODE_2,  KMOD_SHIFT },			/* plus shift modifier '@' */
    7.70 -/*  65 */ {   SDL_SCANCODE_A,  KMOD_SHIFT },			/* all the following need shift modifiers */
    7.71 +/*  62 */ {   SDL_SCANCODE_PERIOD,  KMOD_SHIFT },        /* plus shift modifier '>' */
    7.72 +/*  63 */ {   SDL_SCANCODE_SLASH,  KMOD_SHIFT },        /* plus shift modifier '?' */
    7.73 +/*  64 */ {   SDL_SCANCODE_2,  KMOD_SHIFT },            /* plus shift modifier '@' */
    7.74 +/*  65 */ {   SDL_SCANCODE_A,  KMOD_SHIFT },            /* all the following need shift modifiers */
    7.75  /*  66 */ {   SDL_SCANCODE_B,  KMOD_SHIFT },
    7.76  /*  67 */ {   SDL_SCANCODE_C,  KMOD_SHIFT },
    7.77  /*  68 */ {   SDL_SCANCODE_D,  KMOD_SHIFT },
    7.78 @@ -135,10 +135,10 @@
    7.79  /*  91 */ {   SDL_SCANCODE_LEFTBRACKET, 0 },
    7.80  /*  92 */ {   SDL_SCANCODE_BACKSLASH, 0 },
    7.81  /*  93 */ {   SDL_SCANCODE_RIGHTBRACKET, 0 },
    7.82 -/*  94 */ {   SDL_SCANCODE_6,  KMOD_SHIFT },			/* plus shift modifier '^' */
    7.83 -/*  95 */ {   SDL_SCANCODE_MINUS,  KMOD_SHIFT },		/* plus shift modifier '_' */
    7.84 -/*  96 */ {   SDL_SCANCODE_GRAVE,  KMOD_SHIFT },		/* '`'
    7.85 -/*  97 */ {   SDL_SCANCODE_A, 0	},	
    7.86 +/*  94 */ {   SDL_SCANCODE_6,  KMOD_SHIFT },            /* plus shift modifier '^' */
    7.87 +/*  95 */ {   SDL_SCANCODE_MINUS,  KMOD_SHIFT },        /* plus shift modifier '_' */
    7.88 +/*  96 */ {   SDL_SCANCODE_GRAVE,  KMOD_SHIFT },        /* '`'
    7.89 +/*  97 */ {   SDL_SCANCODE_A, 0    },    
    7.90  /*  98 */ {   SDL_SCANCODE_B, 0 },
    7.91  /*  99 */ {   SDL_SCANCODE_C, 0 },
    7.92  /*  100 */{    SDL_SCANCODE_D, 0 },
    7.93 @@ -164,12 +164,14 @@
    7.94  /*  120 */{    SDL_SCANCODE_X, 0 },
    7.95  /*  121 */{    SDL_SCANCODE_Y, 0 },
    7.96  /*  122 */{    SDL_SCANCODE_Z, 0 },
    7.97 -/*  123 */{    SDL_SCANCODE_LEFTBRACKET, KMOD_SHIFT },	/* plus shift modifier '{' */
    7.98 -/*  124 */{    SDL_SCANCODE_BACKSLASH, KMOD_SHIFT },	/* plus shift modifier '|' */
    7.99 -/*  125 */{    SDL_SCANCODE_RIGHTBRACKET, KMOD_SHIFT },	/* plus shift modifier '}' */
   7.100 -/*  126 */{    SDL_SCANCODE_GRAVE, KMOD_SHIFT },	 	/* plus shift modifier '~' */
   7.101 +/*  123 */{    SDL_SCANCODE_LEFTBRACKET, KMOD_SHIFT },    /* plus shift modifier '{' */
   7.102 +/*  124 */{    SDL_SCANCODE_BACKSLASH, KMOD_SHIFT },    /* plus shift modifier '|' */
   7.103 +/*  125 */{    SDL_SCANCODE_RIGHTBRACKET, KMOD_SHIFT },    /* plus shift modifier '}' */
   7.104 +/*  126 */{    SDL_SCANCODE_GRAVE, KMOD_SHIFT },         /* plus shift modifier '~' */
   7.105  /*  127 */{    SDL_SCANCODE_DELETE, KMOD_SHIFT }
   7.106  /* *INDENT-ON* */
   7.107  };
   7.108  
   7.109  #endif /* UIKitKeyInfo */
   7.110 +
   7.111 +/* vi: set ts=4 sw=4 expandtab: */