feat: Controller Overlay

This commit is contained in:
collecting
2025-10-29 05:21:27 +00:00
parent cd3656fcaa
commit c8e80a5358

View File

@@ -1,4 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#pragma once #pragma once
@@ -29,6 +30,8 @@ public:
// Sets the emulated controller to be displayed // Sets the emulated controller to be displayed
void SetController(Core::HID::EmulatedController* controller); void SetController(Core::HID::EmulatedController* controller);
void SetRawJoystickVisible(bool visible);
// Disables events from the emulated controller // Disables events from the emulated controller
void UnloadController(); void UnloadController();
@@ -207,6 +210,8 @@ private:
void SetTextFont(QPainter& p, float text_size, void SetTextFont(QPainter& p, float text_size,
const QString& font_family = QStringLiteral("sans-serif")); const QString& font_family = QStringLiteral("sans-serif"));
bool raw_joystick_visible = false;
bool is_controller_set{}; bool is_controller_set{};
bool is_connected{}; bool is_connected{};
bool needs_redraw{}; bool needs_redraw{};