comparison src/video/picogui/SDL_pgevents.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 19418e4422cb
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
42 } 42 }
43 43
44 int PG_HandleKey(struct pgEvent *evt) 44 int PG_HandleKey(struct pgEvent *evt)
45 { 45 {
46 SDL_keysym sym; 46 SDL_keysym sym;
47 memset(&sym,0,sizeof(sym)); 47 SDL_memset(&sym,0,sizeof(sym));
48 sym.sym = evt->e.kbd.key; 48 sym.sym = evt->e.kbd.key;
49 sym.mod = evt->e.kbd.mods; 49 sym.mod = evt->e.kbd.mods;
50 SDL_PrivateKeyboard(evt->type == PG_WE_KBD_KEYDOWN, &sym); 50 SDL_PrivateKeyboard(evt->type == PG_WE_KBD_KEYDOWN, &sym);
51 return 0; 51 return 0;
52 } 52 }
53 53
54 int PG_HandleChar(struct pgEvent *evt) 54 int PG_HandleChar(struct pgEvent *evt)
55 { 55 {
56 SDL_keysym sym; 56 SDL_keysym sym;
57 memset(&sym,0,sizeof(sym)); 57 SDL_memset(&sym,0,sizeof(sym));
58 sym.unicode = evt->e.kbd.key; 58 sym.unicode = evt->e.kbd.key;
59 sym.mod = evt->e.kbd.mods; 59 sym.mod = evt->e.kbd.mods;
60 SDL_PrivateKeyboard(evt->type == PG_WE_KBD_KEYDOWN, &sym); 60 SDL_PrivateKeyboard(evt->type == PG_WE_KBD_KEYDOWN, &sym);
61 return 0; 61 return 0;
62 } 62 }