mirror of
https://github.com/erickdavestech/ps5-dualsense-overlay.git
synced 2026-10-06 08:00:12 +02:00
On-screen DualSense controller overlay for a PS5 running homebrew. Derivative of Common FPS for PS5 v1.2.1 by porhe911 with the SimpleFPS patch by khalifa007, both GPL-3.0-or-later. Controller artwork by Zacksly, CC BY 3.0, modified. See CREDITS.md and CHANGELOG.md. Signed-off-by: erickdavestech <54048831+erickdavestech@users.noreply.github.com>
29 lines
505 B
C++
29 lines
505 B
C++
/*
|
|
* Common FPS for PS5
|
|
* Copyright (C) 2026 porhe911
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
#include "common_fps/fps_sampler.hpp"
|
|
#include "common_fps/types.hpp"
|
|
|
|
namespace common_fps {
|
|
|
|
class Lifecycle {
|
|
public:
|
|
Lifecycle(Platform& platform, OverlayConfig cfg);
|
|
|
|
OverlayFrame tick();
|
|
void set_config(const OverlayConfig& cfg);
|
|
void reset();
|
|
|
|
private:
|
|
Platform& platform_;
|
|
FpsSampler sampler_;
|
|
OverlayConfig config_;
|
|
};
|
|
|
|
} // namespace common_fps
|