Mercurial > sdl-ios-xcode
comparison src/video/qtopia/SDL_sysevents.cc @ 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 | 19418e4422cb |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
83 } else { | 83 } else { |
84 return; | 84 return; |
85 } | 85 } |
86 | 86 |
87 /* If our view is active, we'll find key changes here */ | 87 /* If our view is active, we'll find key changes here */ |
88 if ( memcmp(keyinfo[0].key_states, keyinfo[1].key_states, 16) != 0 ) { | 88 if ( SDL_memcmp(keyinfo[0].key_states, keyinfo[1].key_states, 16) != 0 ) { |
89 for ( i=0; i<16; ++i ) { | 89 for ( i=0; i<16; ++i ) { |
90 Uint8 new_state, transition; | 90 Uint8 new_state, transition; |
91 | 91 |
92 new_state = keyinfo[key_flip].key_states[i]; | 92 new_state = keyinfo[key_flip].key_states[i]; |
93 transition = keyinfo[!key_flip].key_states[i] ^ | 93 transition = keyinfo[!key_flip].key_states[i] ^ |
147 #if 0 | 147 #if 0 |
148 unsigned int i; | 148 unsigned int i; |
149 | 149 |
150 /* Initialize all the key states as "up" */ | 150 /* Initialize all the key states as "up" */ |
151 key_flip = 0; | 151 key_flip = 0; |
152 memset(keyinfo[key_flip].key_states, 0, 16); | 152 SDL_memset(keyinfo[key_flip].key_states, 0, 16); |
153 | 153 |
154 /* Initialize the key translation table */ | 154 /* Initialize the key translation table */ |
155 for ( i=0; i<SDL_TABLESIZE(keymap); ++i ) | 155 for ( i=0; i<SDL_TABLESIZE(keymap); ++i ) |
156 keymap[i] = SDLK_UNKNOWN; | 156 keymap[i] = SDLK_UNKNOWN; |
157 | 157 |