Mercurial > sdl-ios-xcode
changeset 10:ee3bb7cd06b5
Fixed left arrow on iBook keyboard under MacOS X
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sat, 28 Apr 2001 18:56:58 +0000 |
parents | a1c15fa4abb9 |
children | 7b94b6379341 |
files | src/video/maccommon/SDL_macevents.c |
diffstat | 1 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/maccommon/SDL_macevents.c Fri Apr 27 20:25:25 2001 +0000 +++ b/src/video/maccommon/SDL_macevents.c Sat Apr 28 18:56:58 2001 +0000 @@ -460,13 +460,6 @@ for ( i=0; i<SDL_TABLESIZE(MAC_keymap); ++i ) MAC_keymap[i] = SDLK_UNKNOWN; - /* Wierd, these keys are on my iBook under MacOS X */ - MAC_keymap[MK_IBOOK_ENTER] = SDLK_KP_ENTER; - MAC_keymap[MK_IBOOK_RIGHT] = SDLK_RIGHT; - MAC_keymap[MK_IBOOK_DOWN] = SDLK_DOWN; - MAC_keymap[MK_IBOOK_UP] = SDLK_UP; - MAC_keymap[MK_IBOOK_LEFT] = SDLK_LEFT; - /* Defined MAC_* constants */ MAC_keymap[MK_ESCAPE] = SDLK_ESCAPE; MAC_keymap[MK_F1] = SDLK_F1; @@ -577,6 +570,17 @@ MAC_keymap[MK_RIGHT] = SDLK_RIGHT; MAC_keymap[MK_KP0] = SDLK_KP0; MAC_keymap[MK_KP_PERIOD] = SDLK_KP_PERIOD; + +#if defined(__APPLE__) && defined(__MACH__) + /* Wierd, these keys are on my iBook under MacOS X + Note that the left arrow keysym is the same as left ctrl!? + */ + MAC_keymap[MK_IBOOK_ENTER] = SDLK_KP_ENTER; + MAC_keymap[MK_IBOOK_RIGHT] = SDLK_RIGHT; + MAC_keymap[MK_IBOOK_DOWN] = SDLK_DOWN; + MAC_keymap[MK_IBOOK_UP] = SDLK_UP; + MAC_keymap[MK_IBOOK_LEFT] = SDLK_LEFT; +#endif /* MacOS X */ } static SDL_keysym *TranslateKey(int scancode, int modifiers,