diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index 45ff58a2e..ac98582b5 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -869,8 +869,6 @@ static void Impl_HandleMouseButtonEvent(SDL_MouseButtonEvent evt, Uint32 type) { event_t event; - SDL_memset(&event, 0, sizeof(event_t)); - // Ignore the event if the mouse is not actually focused on the window. // This can happen if you used the mouse to restore keyboard focus; // this apparently makes a mouse button down event but not a mouse button up event, @@ -914,8 +912,6 @@ static void Impl_HandleMouseWheelEvent(SDL_MouseWheelEvent evt) { event_t event; - SDL_memset(&event, 0, sizeof(event_t)); - event.device = 0; int y = evt.y; @@ -1208,7 +1204,6 @@ void I_GetEvent(void) event_t event; int wwidth, wheight; SDL_GetWindowSize(window, &wwidth, &wheight); - //SDL_memset(&event, 0, sizeof(event_t)); event.type = ev_mouse; event.device = 0; // TODO device event.data1 = 0;