This commit is contained in:
Peter Li 2025-05-03 11:37:44 -07:00
parent 9837556c1c
commit 1175088712
1 changed files with 0 additions and 2 deletions

View File

@ -302,11 +302,9 @@ pub fn processFunc(e: *sdl3.Event) void {
c.doom_mouse_move(@intFromFloat(e.motion.xrel * 4 * gDoom.sensitivity), @intFromFloat(e.motion.yrel * 4 * gDoom.sensitivity));
},
sdl3_c.SDL_EVENT_MOUSE_BUTTON_DOWN => {
log("pushing mouse button down to doom {d}", .{e.button.button});
c.doom_button_down(sdlToDoomButton(e.button.button));
},
sdl3_c.SDL_EVENT_MOUSE_BUTTON_UP => {
log("pushing mouse button up to doom {d}", .{e.button.button});
c.doom_button_up(sdlToDoomButton(e.button.button));
},
sdl3_c.SDL_EVENT_KEY_DOWN => {