Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_ikbdevents.c @ 2043:adf732f1f016
Formatting update
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 24 Sep 2006 15:56:55 +0000 |
parents | d774e9d7c2a8 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2042:3908e1f808e1 | 2043:adf732f1f016 |
---|---|
44 static Uint16 atari_prevmouseb; /* save state of mouse buttons */ | 44 static Uint16 atari_prevmouseb; /* save state of mouse buttons */ |
45 | 45 |
46 void | 46 void |
47 AtariIkbd_InitOSKeymap(_THIS) | 47 AtariIkbd_InitOSKeymap(_THIS) |
48 { | 48 { |
49 SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, sizeof(SDL_AtariIkbd_keyboard)); | 49 SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, |
50 sizeof(SDL_AtariIkbd_keyboard)); | |
50 | 51 |
51 /* Now install our handler */ | 52 /* Now install our handler */ |
52 SDL_AtariIkbd_mouseb = SDL_AtariIkbd_mousex = SDL_AtariIkbd_mousey = 0; | 53 SDL_AtariIkbd_mouseb = SDL_AtariIkbd_mousex = SDL_AtariIkbd_mousey = 0; |
53 atari_prevmouseb = 0; | 54 atari_prevmouseb = 0; |
54 | 55 |
88 } | 89 } |
89 | 90 |
90 /* Key released ? */ | 91 /* Key released ? */ |
91 if (SDL_AtariIkbd_keyboard[i] == KEY_RELEASED) { | 92 if (SDL_AtariIkbd_keyboard[i] == KEY_RELEASED) { |
92 SDL_PrivateKeyboard(SDL_RELEASED, | 93 SDL_PrivateKeyboard(SDL_RELEASED, |
93 SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE)); | 94 SDL_Atari_TranslateKey(i, &keysym, |
95 SDL_FALSE)); | |
94 SDL_AtariIkbd_keyboard[i] = KEY_UNDEFINED; | 96 SDL_AtariIkbd_keyboard[i] = KEY_UNDEFINED; |
95 } | 97 } |
96 } | 98 } |
97 | 99 |
98 /*--- Send mouse events ---*/ | 100 /*--- Send mouse events ---*/ |