src/video/emscripten/SDL_emscriptenevents.c
changeset 9279 e5e5571d3bed
parent 9277 743c0a496aa8
equal deleted inserted replaced
9278:e881c9e96650 9279:e5e5571d3bed
   354 
   354 
   355 int
   355 int
   356 Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
   356 Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
   357 {
   357 {
   358     SDL_WindowData *window_data = userData;
   358     SDL_WindowData *window_data = userData;
   359     SDL_SendMouseWheel(window_data->window, 0, wheelEvent->deltaX, -wheelEvent->deltaY);
   359     SDL_SendMouseWheel(window_data->window, 0, wheelEvent->deltaX, -wheelEvent->deltaY, SDL_MOUSEWHEEL_NORMAL);
   360     return 1;
   360     return 1;
   361 }
   361 }
   362 
   362 
   363 int
   363 int
   364 Emscripten_HandleFocus(int eventType, const EmscriptenFocusEvent *wheelEvent, void *userData)
   364 Emscripten_HandleFocus(int eventType, const EmscriptenFocusEvent *wheelEvent, void *userData)