Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 14 Feb 2007 10:25:41 +0000
changeset 2090f419000e7596
parent 2089 58ed46da318c
child 2091 b8bee470f737
Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
src/video/cocoa/SDL_cocoakeyboard.m
src/video/cocoa/SDL_cocoakeys.h
     1.1 --- a/src/video/cocoa/SDL_cocoakeyboard.m	Tue Feb 13 09:58:58 2007 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoakeyboard.m	Wed Feb 14 10:25:41 2007 +0000
     1.3 @@ -77,9 +77,14 @@
     1.4      keymap[KEY_F10] = SDLK_F10;
     1.5      keymap[KEY_F11] = SDLK_F11;
     1.6      keymap[KEY_F12] = SDLK_F12;
     1.7 +    keymap[KEY_F13] = SDLK_F13;
     1.8 +    keymap[KEY_F14] = SDLK_F14;
     1.9 +    keymap[KEY_F15] = SDLK_F15;
    1.10 +/*
    1.11      keymap[KEY_PRINT] = SDLK_PRINT;
    1.12      keymap[KEY_SCROLLOCK] = SDLK_SCROLLOCK;
    1.13      keymap[KEY_PAUSE] = SDLK_PAUSE;
    1.14 +*/
    1.15      keymap[KEY_POWER] = SDLK_POWER;
    1.16      keymap[KEY_BACKQUOTE] = SDLK_BACKQUOTE;
    1.17      keymap[KEY_1] = SDLK_1;
     2.1 --- a/src/video/cocoa/SDL_cocoakeys.h	Tue Feb 13 09:58:58 2007 +0000
     2.2 +++ b/src/video/cocoa/SDL_cocoakeys.h	Wed Feb 14 10:25:41 2007 +0000
     2.3 @@ -36,9 +36,14 @@
     2.4  #define KEY_F10			0x6D
     2.5  #define KEY_F11			0x67
     2.6  #define KEY_F12			0x6F
     2.7 +#define KEY_F13			0x69
     2.8 +#define KEY_F14			0x6B
     2.9 +#define KEY_F15			0x71
    2.10 +/*
    2.11  #define KEY_PRINT		0x69
    2.12  #define KEY_SCROLLOCK    0x6B
    2.13  #define KEY_PAUSE		0x71
    2.14 +*/
    2.15  #define KEY_POWER		0x7F
    2.16  #define KEY_BACKQUOTE	0x32
    2.17  #define KEY_1			0x12