feat: Controller Overlay

This commit is contained in:
collecting
2025-10-29 05:23:10 +00:00
parent 94b77d68ef
commit 5dc79d01cf

View File

@@ -39,6 +39,7 @@ class OverlayDialog;
class PerformanceOverlay; class PerformanceOverlay;
class MultiplayerRoomOverlay; class MultiplayerRoomOverlay;
class VramOverlay; class VramOverlay;
class ControllerOverlay;
class ProfilerWidget; class ProfilerWidget;
class ControllerDialog; class ControllerDialog;
class QLabel; class QLabel;
@@ -109,6 +110,7 @@ public:
bool DropAction(QDropEvent* event); bool DropAction(QDropEvent* event);
void AcceptDropEvent(QDropEvent* event); void AcceptDropEvent(QDropEvent* event);
MultiplayerState* GetMultiplayerState() { return multiplayer_state; } MultiplayerState* GetMultiplayerState() { return multiplayer_state; }
Core::System* GetSystem() { return system.get(); }
bool IsEmulationRunning() const { return emulation_running; } bool IsEmulationRunning() const { return emulation_running; }
signals: signals:
void EmulationStarting(EmuThread* emu_thread); void EmulationStarting(EmuThread* emu_thread);
@@ -249,6 +251,7 @@ private slots:
void OnTogglePerformanceOverlay(); void OnTogglePerformanceOverlay();
void OnToggleMultiplayerRoomOverlay(); void OnToggleMultiplayerRoomOverlay();
void OnToggleVramOverlay(); void OnToggleVramOverlay();
void OnToggleControllerOverlay();
void OnDisplayTitleBars(bool); void OnDisplayTitleBars(bool);
double GetCurrentFPS() const; double GetCurrentFPS() const;
double GetCurrentFrameTime() const; double GetCurrentFrameTime() const;
@@ -335,6 +338,7 @@ private:
PerformanceOverlay* performance_overlay{}; PerformanceOverlay* performance_overlay{};
MultiplayerRoomOverlay* multiplayer_room_overlay{}; MultiplayerRoomOverlay* multiplayer_room_overlay{};
VramOverlay* vram_overlay{}; VramOverlay* vram_overlay{};
ControllerOverlay* controller_overlay{};
GameListPlaceholder* game_list_placeholder; GameListPlaceholder* game_list_placeholder;
std::vector<VkDeviceInfo::Record> vk_device_records; std::vector<VkDeviceInfo::Record> vk_device_records;
QLabel* message_label = nullptr; QLabel* message_label = nullptr;