Mercurial > sdl-ios-xcode
comparison src/events/SDL_mouse.c @ 3763:81ea7d9a6624 gsoc2008_manymouse
Proximity events and evil-temporary makefile repair
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Wed, 02 Jul 2008 20:29:29 +0000 |
parents | 64f346a83ed3 |
children | 2970fcfbdd54 |
comparison
equal
deleted
inserted
replaced
3762:f667489e7309 | 3763:81ea7d9a6624 |
---|---|
314 } | 314 } |
315 if (!focus) { | 315 if (!focus) { |
316 SDL_SendWindowEvent(mouse->focus, SDL_WINDOWEVENT_ENTER, 0, 0); | 316 SDL_SendWindowEvent(mouse->focus, SDL_WINDOWEVENT_ENTER, 0, 0); |
317 } | 317 } |
318 } | 318 } |
319 } | |
320 | |
321 int | |
322 SDL_SendProximity(int id, int x, int y, int type) | |
323 { | |
324 int index=SDL_GetIndexById(id); | |
325 int posted=0; | |
326 if(SDL_ProcessEvents[type]==SDL_ENABLE) | |
327 { | |
328 SDL_Event event; | |
329 event.proximity.which=index; | |
330 event.proximity.x=x; | |
331 event.proximity.y=y; | |
332 event.type=type; | |
333 event.proximity.type=type; | |
334 posted = (SDL_PushEvent(&event) > 0); | |
335 } | |
336 return posted; | |
319 } | 337 } |
320 | 338 |
321 int | 339 int |
322 SDL_SendMouseMotion(int id, int relative, int x, int y,int z) | 340 SDL_SendMouseMotion(int id, int relative, int x, int y,int z) |
323 { | 341 { |