Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemevents.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | c9b51268668f |
children | adc8ff3c9597 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
87 | 87 |
88 void GEM_InitOSKeymap(_THIS) | 88 void GEM_InitOSKeymap(_THIS) |
89 { | 89 { |
90 int i; | 90 int i; |
91 | 91 |
92 memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard)); | 92 SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard)); |
93 memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard)); | 93 SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard)); |
94 memset(gem_currentascii, 0, sizeof(gem_currentascii)); | 94 SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii)); |
95 | 95 |
96 /* Initialize keymap */ | 96 /* Initialize keymap */ |
97 for ( i=0; i<sizeof(keymap); i++ ) | 97 for ( i=0; i<sizeof(keymap); i++ ) |
98 keymap[i] = SDLK_UNKNOWN; | 98 keymap[i] = SDLK_UNKNOWN; |
99 | 99 |
132 short mousex, mousey, mouseb, dummy; | 132 short mousex, mousey, mouseb, dummy; |
133 short kstate, prevkc, prevks; | 133 short kstate, prevkc, prevks; |
134 int i; | 134 int i; |
135 SDL_keysym keysym; | 135 SDL_keysym keysym; |
136 | 136 |
137 memset(gem_currentkeyboard,0,sizeof(gem_currentkeyboard)); | 137 SDL_memset(gem_currentkeyboard,0,sizeof(gem_currentkeyboard)); |
138 prevkc = prevks = 0; | 138 prevkc = prevks = 0; |
139 | 139 |
140 for (;;) | 140 for (;;) |
141 { | 141 { |
142 int quit, resultat, event_mask, mouse_event; | 142 int quit, resultat, event_mask, mouse_event; |
213 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) | 213 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) |
214 SDL_PrivateKeyboard(SDL_RELEASED, | 214 SDL_PrivateKeyboard(SDL_RELEASED, |
215 TranslateKey(i, gem_currentascii[i], &keysym, SDL_FALSE)); | 215 TranslateKey(i, gem_currentascii[i], &keysym, SDL_FALSE)); |
216 } | 216 } |
217 | 217 |
218 memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); | 218 SDL_memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); |
219 | 219 |
220 /* Refresh window name ? */ | 220 /* Refresh window name ? */ |
221 if (GEM_refresh_name) { | 221 if (GEM_refresh_name) { |
222 if ( SDL_GetAppState() & SDL_APPACTIVE ) { | 222 if ( SDL_GetAppState() & SDL_APPACTIVE ) { |
223 /* Fullscreen/windowed */ | 223 /* Fullscreen/windowed */ |