diff --git a/src/app/main.cpp b/src/app/main.cpp index e69baa83bb..2cf5106c88 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -356,7 +356,7 @@ int main(int, char**) PropModeReplace, (unsigned char *)&value, 1); // Main loop while (!glfwWindowShouldClose(window)){ - check_keybinds(params, vendorID); + check_keybinds(params); if (!params.no_display){ if (mangoapp_paused){ diff --git a/src/gl/gl_hud.cpp b/src/gl/gl_hud.cpp index 5a3822406b..ba59e0976c 100644 --- a/src/gl/gl_hud.cpp +++ b/src/gl/gl_hud.cpp @@ -217,7 +217,7 @@ void imgui_render(unsigned int width, unsigned int height) process_control_socket(control_client, params); } - check_keybinds(params, vendorID); + check_keybinds(params); update_hud_info(sw_stats, params, vendorID); ImGuiContext *saved_ctx = ImGui::GetCurrentContext(); diff --git a/src/keybinds.cpp b/src/keybinds.cpp index 84c0288f18..718860f9cd 100644 --- a/src/keybinds.cpp +++ b/src/keybinds.cpp @@ -11,7 +11,7 @@ Clock::time_point last_f2_press, toggle_fps_limit_press, toggle_preset_press, last_f12_press, reload_cfg_press, last_upload_press; -void check_keybinds(struct overlay_params& params, uint32_t vendorID){ +void check_keybinds(struct overlay_params& params){ using namespace std::chrono_literals; auto now = Clock::now(); /* us */ auto elapsedF2 = now - last_f2_press; diff --git a/src/overlay.h b/src/overlay.h index f97a6c8bf2..d203adef5b 100644 --- a/src/overlay.h +++ b/src/overlay.h @@ -102,7 +102,7 @@ void update_hud_info(struct swapchain_stats& sw_stats, const struct overlay_para void update_hud_info_with_frametime(struct swapchain_stats& sw_stats, const struct overlay_params& params, uint32_t vendorID, uint64_t frametime_ns); void update_hw_info(const struct overlay_params& params, uint32_t vendorID); void init_cpu_stats(overlay_params& params); -void check_keybinds(overlay_params& params, uint32_t vendorID); +void check_keybinds(overlay_params& params); void init_system_info(void); void FpsLimiter(struct fps_limit& stats); void create_fonts(ImFontAtlas* font_atlas, const overlay_params& params, ImFont*& small_font, ImFont*& text_font); diff --git a/src/vulkan.cpp b/src/vulkan.cpp index e9f896cd03..9979cdb35f 100644 --- a/src/vulkan.cpp +++ b/src/vulkan.cpp @@ -463,7 +463,7 @@ static void snapshot_swapchain_frame(struct swapchain_data *data) struct device_data *device_data = data->device; struct instance_data *instance_data = device_data->instance; update_hud_info(data->sw_stats, instance_data->params, device_data->properties.vendorID); - check_keybinds(instance_data->params, device_data->properties.vendorID); + check_keybinds(instance_data->params); #ifdef __linux__ if (instance_data->params.control >= 0) { control_client_check(instance_data->params.control, instance_data->control_client, gpu.c_str()); diff --git a/src/win/d3d_shared.cpp b/src/win/d3d_shared.cpp index e37b483851..c23267350e 100644 --- a/src/win/d3d_shared.cpp +++ b/src/win/d3d_shared.cpp @@ -20,6 +20,6 @@ void init_d3d_shared(){ } void d3d_run(){ - check_keybinds(params, vendorID); + check_keybinds(params); update_hud_info(sw_stats, params, vendorID); }