| 198 | int sdlMouseMotionFilter(const SDL_Event *event); |
| 199 | |
| 200 | int SDLCALL d3SDLEventFilter(void *userdata, SDL_Event *event) { |
| 201 | switch (event->type) { |
| 202 | case SDL_KEYUP: |
| 203 | case SDL_KEYDOWN: |
| 204 | return (sdlKeyFilter(event)); |
| 205 | case SDL_JOYBALLMOTION: |
| 206 | case SDL_MOUSEMOTION: |
| 207 | return (sdlMouseMotionFilter(event)); |
| 208 | case SDL_MOUSEBUTTONUP: |
| 209 | return (sdlMouseButtonUpFilter(event)); |
| 210 | case SDL_MOUSEBUTTONDOWN: |
| 211 | return (sdlMouseButtonDownFilter(event)); |
| 212 | case SDL_MOUSEWHEEL: |
| 213 | return (sdlMouseWheelFilter(event)); |
| 214 | case SDL_QUIT: |
| 215 | SDL_Quit(); |
| 216 | _exit(0); |
| 217 | break; |
| 218 | default: |
| 219 | break; |
| 220 | } // switch |
| 221 | |
| 222 | return (1); |
| 223 | } |
| 224 | |
| 225 | // --------------------------------------------------------------------------- |
| 226 | // Main |
nothing calls this directly
no test coverage detected