saving
This commit is contained in:
parent
9837556c1c
commit
1175088712
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue