Mercurial > sdl-ios-xcode
comparison src/events/SDL_mouse.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 | 450721ad5436 |
children | c71e05b4dc2e |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
180 | 180 |
181 /* Post the event, if desired */ | 181 /* Post the event, if desired */ |
182 posted = 0; | 182 posted = 0; |
183 if ( SDL_ProcessEvents[SDL_MOUSEMOTION] == SDL_ENABLE ) { | 183 if ( SDL_ProcessEvents[SDL_MOUSEMOTION] == SDL_ENABLE ) { |
184 SDL_Event event; | 184 SDL_Event event; |
185 memset(&event, 0, sizeof(event)); | 185 SDL_memset(&event, 0, sizeof(event)); |
186 event.type = SDL_MOUSEMOTION; | 186 event.type = SDL_MOUSEMOTION; |
187 event.motion.state = buttonstate; | 187 event.motion.state = buttonstate; |
188 event.motion.x = X; | 188 event.motion.x = X; |
189 event.motion.y = Y; | 189 event.motion.y = Y; |
190 event.motion.xrel = Xrel; | 190 event.motion.xrel = Xrel; |
202 SDL_Event event; | 202 SDL_Event event; |
203 int posted; | 203 int posted; |
204 int move_mouse; | 204 int move_mouse; |
205 Uint8 buttonstate; | 205 Uint8 buttonstate; |
206 | 206 |
207 memset(&event, 0, sizeof(event)); | 207 SDL_memset(&event, 0, sizeof(event)); |
208 | 208 |
209 /* Check parameters */ | 209 /* Check parameters */ |
210 if ( x || y ) { | 210 if ( x || y ) { |
211 ClipOffset(&x, &y); | 211 ClipOffset(&x, &y); |
212 move_mouse = 1; | 212 move_mouse = 1; |