Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_events.c @ 3040:62d4992e5a92
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 14 Jan 2009 04:25:32 +0000 |
parents | 490f3e4fe753 |
children | 64ce267332c6 |
comparison
equal
deleted
inserted
replaced
3039:829043b363d1 | 3040:62d4992e5a92 |
---|---|
175 } | 175 } |
176 } | 176 } |
177 break; | 177 break; |
178 case DWET_MOTION: | 178 case DWET_MOTION: |
179 if (ClientXY(p, &evt->x, &evt->y)) { | 179 if (ClientXY(p, &evt->x, &evt->y)) { |
180 SDL_Window *window = SDL_GetWindowFromID(p->sdl_id); | 180 SDL_Window *window = SDL_GetWindowFromID(p->sdl_id); |
181 if (!devdata->use_linux_input) { | 181 if (!devdata->use_linux_input) { |
182 if (!(flags & SDL_WINDOW_INPUT_GRABBED)) | 182 if (!(flags & SDL_WINDOW_INPUT_GRABBED)) |
183 SDL_SendMouseMotion(devdata->mouse_id[0], 0, | 183 SDL_SendMouseMotion(devdata->mouse_id[0], 0, |
184 evt->x, evt->y, 0); | 184 evt->x, evt->y, 0); |
185 } else { | 185 } else { |
191 MotionAllMice(_this, evt->x, evt->y); | 191 MotionAllMice(_this, evt->x, evt->y); |
192 cnt = 0; | 192 cnt = 0; |
193 } | 193 } |
194 } | 194 } |
195 if (!(window->flags & SDL_WINDOW_MOUSE_FOCUS)) | 195 if (!(window->flags & SDL_WINDOW_MOUSE_FOCUS)) |
196 SDL_SendWindowEvent(p->sdl_id, SDL_WINDOWEVENT_ENTER, 0, 0); | 196 SDL_SendWindowEvent(p->sdl_id, SDL_WINDOWEVENT_ENTER, 0, |
197 0); | |
197 } | 198 } |
198 break; | 199 break; |
199 case DWET_KEYDOWN: | 200 case DWET_KEYDOWN: |
200 if (!devdata->use_linux_input) { | 201 if (!devdata->use_linux_input) { |
201 DirectFB_TranslateKey(_this, evt, &keysym); | 202 DirectFB_TranslateKey(_this, evt, &keysym); |