rpcsx/rpcs3/Emu/RSX/Overlays/HomeMenu/overlay_home_menu.h
Megamouse 73dba6d6e0 overlays: do not play sounds on fast auto repeat
Currently there's a nasty sound stakkato going on if you keep the dpad pressed to the left in the home menu for example.
2023-05-20 18:27:26 +02:00

32 lines
674 B
C++

#pragma once
#include "Emu/RSX/Overlays/overlays.h"
#include "Emu/Cell/ErrorCodes.h"
#include "overlay_home_menu_main_menu.h"
namespace rsx
{
namespace overlays
{
struct home_menu_dialog : public user_interface
{
public:
home_menu_dialog();
void update() override;
void on_button_pressed(pad_button button_press, bool is_auto_repeat) override;
compiled_resource get_compiled() override;
error_code show(std::function<void(s32 status)> on_close);
private:
home_menu_main_menu m_main_menu;
overlay_element m_dim_background{};
label m_description{};
label m_time_display{};
animation_color_interpolate fade_animation{};
};
}
}