Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_gemdosevents.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 |
---|---|
73 void AtariGemdos_InitOSKeymap(_THIS) | 73 void AtariGemdos_InitOSKeymap(_THIS) |
74 { | 74 { |
75 int i, vectors_mask; | 75 int i, vectors_mask; |
76 unsigned long dummy; | 76 unsigned long dummy; |
77 | 77 |
78 memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard)); | 78 SDL_memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard)); |
79 memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard)); | 79 SDL_memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard)); |
80 | 80 |
81 /* Initialize keymap */ | 81 /* Initialize keymap */ |
82 for ( i=0; i<sizeof(keymap); i++ ) | 82 for ( i=0; i<sizeof(keymap); i++ ) |
83 keymap[i] = SDLK_UNKNOWN; | 83 keymap[i] = SDLK_UNKNOWN; |
84 | 84 |
120 { | 120 { |
121 int i; | 121 int i; |
122 SDL_keysym keysym; | 122 SDL_keysym keysym; |
123 | 123 |
124 /* Update pressed keys */ | 124 /* Update pressed keys */ |
125 memset(gemdos_currentkeyboard, 0, ATARIBIOS_MAXKEYS); | 125 SDL_memset(gemdos_currentkeyboard, 0, ATARIBIOS_MAXKEYS); |
126 | 126 |
127 while (Cconis()!=DEV_BUSY) { | 127 while (Cconis()!=DEV_BUSY) { |
128 unsigned long key_pressed; | 128 unsigned long key_pressed; |
129 unsigned char scancode, asciicode; | 129 unsigned char scancode, asciicode; |
130 | 130 |
154 } | 154 } |
155 | 155 |
156 SDL_AtariXbios_PostMouseEvents(this, SDL_TRUE); | 156 SDL_AtariXbios_PostMouseEvents(this, SDL_TRUE); |
157 | 157 |
158 /* Will be previous table */ | 158 /* Will be previous table */ |
159 memcpy(gemdos_previouskeyboard, gemdos_currentkeyboard, ATARIBIOS_MAXKEYS); | 159 SDL_memcpy(gemdos_previouskeyboard, gemdos_currentkeyboard, ATARIBIOS_MAXKEYS); |
160 } | 160 } |
161 | 161 |
162 static void UpdateSpecialKeys(int special_keys_state) | 162 static void UpdateSpecialKeys(int special_keys_state) |
163 { | 163 { |
164 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \ | 164 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \ |